asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Report IRR for negative binomial regression | Word | Excel Reply To: Report IRR for negative binomial regression | Word | Excel

Attaullah Shah
Moderator
Post count: 70

I think what you are asking for is available in the reg1 template.
See details here https://asdocx.com/creating-and-working-with-asdocx-template-files/reg1-template-of-asdocx-regression-for-epidemiology/.

 asdocx nbreg daysabs mathnce langnce female , irr template(reg1)

An example of using the reg1 template command and its results are given below.

Table: Regression Results – daysabs
Variable OR [95% CI] P-value
ctbs math nce 0.998 [0.989, 1.008] 0.741
ctbs lang nce 0.986 [0.975, 0.997] 0.010
female 1.539 [1.171, 2.024] 0.002
Constant 9.825 [6.511, 14.824] 0.000
/lnalpha 0.253 [0.066, 0.441] .b
_diparm1:alpha 1.288 [1.068, 1.554] .b
Observations 316