Hi All
I am rather new to Stata and have encountered some difficulty in generating a word documents with both odds ratios and 95% confidence intervals using the following chunk of code:
outreg, clear
foreach r in $health {
svy,subpop(include): logistic `r' $xvars if bentype1==1
outreg, merge varlabels bdec(2) tdec(2) blankrows ctitle("" "`r'")
}
outreg using "$output\T3. Multivariate Analysis-HEW_PW1.doc", or stats(e_ci) replay replace store(table1) bdec(2) tdec(2) hlstyle(s;d;;s) ///
When I place the "or, stats(e_b e_ci) command in the loop: the 3300 error code arises. When I place it in the following line of code using the document, there is no output of CI in the word document. The health global is a series of health related outcome variables. The xvars globals is a set of independent household variables.
Any help is much appreciated.. I'm happy to provide additional information if needed.
Related Posts with displaying Odds Ratios and 95% Confidence Intervals in word using outreg
Group VariablesHello guys, I am currently running a panel ARDL study. I have 40 countries in SSA as my case study. …
Events and rates with svy commandHi, I am using survey data in a study and have svy set the data. I am using Cox regression to compu…
Panel regression with fixed effectsHello I have 1.16 Mio loan applications (id=1-1.16Mio), the variables loan amount, the issue date, t…
Heteroscedasticity Dear Stata Experts: I have two questions regarding regression analysis: 1. What is the difference …
Different y-axis scaling with the twoway by() optionDear Statalist I have a figure that kind of looks like this (for code see below): Array A reviewer…
Subscribe to:
Post Comments (Atom)
0 Response to displaying Odds Ratios and 95% Confidence Intervals in word using outreg
Post a Comment