version 1.0.0

Title

div -- div performs Stata command and echoes the command or output or both to the HTML log file. This command belongs to weaver packages.

Syntax

Perform command and echo command and output to the HTML log

div [code | result] command

If the code subcommand is specified, only the command will be included,
supressing the output from Weaver log. In contrast, if the result
subcommand is specified, only the output will be included in the Weaver log and
the command will be ignored.

Description

div run Stata command and echo the command and output in the HTML log
in weaver package. If weaver is not in use (i.e. there is not HTML
log open), div run the command and return the output and at the end, it
also return a warning that the HTML log is not on.

The code subcommand can be added to div command to only echo
the command in the HTML log and suppress the output from the HTML log. Although
it continues to print the output in Stata results window.

The result subcommand can be added to div command to only echo the
output in the HTML log and suppress command from the HTML log.
Although it continues to print the output in Stata results window.

Example(s)

div echoes the command and output to the Weaver log.

. sysuse auto, clear
. div regress mpg weight foreign headroom

the result only includes the output in the weaver log

. div r code misstable summarize

the code subcommand only includes the command in the weaver log

. div c generate newvar = price

Author

E. F. Haghish

Center for Medical Biometry and Medical Informatics

University of Freiburg, Germany

and

Department of Mathematics and Computer Science

University of Southern Denmark

haghish@imbi.uni-freiburg.de

Weaver Homepage

Package Updates on Twitter

This help file was dynamically produced by MarkDoc Literate Programming package