reg1 template for reporting regression results in epidemiology research

It is common in the epidemiology research to report odd ratios or risk-ratios and their p-values from logistic regression or other regression models. reg1 template of asdocx makes it extremely easy to build such tables with much needed flexibility.
The template is free. However, it requires asdocx package. The template file is installed automatically when you install asdocx.

After installation of the template, you can use the template as shown below.


asdocx reg depvar indepvars, title(text) dec(#) dect(#) ///
       template(reg1) reg_options 


Syntax Details

The syntax starts with the keywords asdocx. The word reg can be any Stata command for regressions such reg for ols, logistic for logistic regressions, etc.

The depvar is the dependent or the explained variable .

The indepvars are all other independent or explanatory variables in the regression model.

Option template(reg1)  invokes the reg1 template.

title(text) : Used to specify the table title.

dec(#) : To set decimal points for odd-ratios or other estimates, except the p-values. If left empty, three decimal points will be reported.

dect(#) : To set decimal points of the p-values. If this option is not specified, its values is set equal to dec().

reg_options : All other regression options such robust, etc.

A Simple Example

* Load example dataset
use, clear

* Make regression table using the template(reg1) option
asdocx logistic immigrant logistic immigrant bone_neck bone_fibro ///
       bone_lupus other_anyother  /// 
       template(reg1) replace dec(3) dect(4)

In the above example, immigrant is the dependent variable and all other variables are independent. After comma, option template(reg1) causes asdocx to use the reg1 template.  The above code  generates a table that looks like this.



Order asdocx

Yearly license of asdocx is available at $9.99. Its life-time license is available at $49.99. With the asdocx membership, you get :

  • Life-time license to use
  • All future updates
  • All premium templates / plugins.


Order asdocx