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
Creating ordered pairs of smaller datasets based on a larger datasetDear all, Assume that we have a dataset that looks like this: Code: input str10 firm_id int year …
Interpretation of Fixed effects on a panel dataHello everyone, I am working on my thesis project but having some difficulties in interpreting the …
Help! How to combine different observations into one observation?Hi Statalists! So I am currently working on this project about intergenerational income persistence,…
Confidence intervals for sensitivity/specificity/ppv/npv after estat classificationHello all, I'm working on a project evaluating several biomarkers to predict pre-eclampsia (high b…
Moving Averages Unbalanced Panel dataHi, I have 2 data sets that I have merged. The linked data is yearly data, starting 1996 and the su…
Subscribe to:
Post Comments (Atom)
0 Response to displaying Odds Ratios and 95% Confidence Intervals in word using outreg
Post a Comment