I want to plot the results of logistic regression in Stata 13. The DV is Obesity. The x-axis will show the ORs and the Y-axis will show the name of the covariates. Something like this-
Array
From other posts I have found the following command for a similar question as mine:
#delim ; logistic BMIcat5 ib0.Cum_RF ib1.Sex01 Section1C3 ib2.MaritalNew ib1.HHncome_CatN ib01.EduLvl_Cat ib0.NevrSmok;
parmest, norestore eform label; sencode label, gene(parmlab); twoway scatter parmlab estimate, xline(1) ylab(, valuelabel angle(0)) || rcap min95 max95 parmlab, horizontal legend(order(1 "point estimate" 2 "95% conf. int.") pos(6)) xlabel(0(1)12) xtitle("Odds Ratio") ytitle(""); And this is the ourput I get: 1)adjusted model Array 2) The OR graph Array My problems are: 1) How to show the OR and CI of all the categories of the Cum_RF variable? 2) How to rescale the graph so that the x-axis markers are well spread out instead of being congested in the left corner?
Related Posts with Generating a graph for Odds Ration and CI from logistic regression results
Hypothesis testing between regression coefficientsHi everyone! So I created this regression table using the following commands Code: areg logincome l…
How to get R-squared in GMM regressions?Hello everyone, I am estimating Taylor rules of monetary policy using GMM and "gmm" command (Stata 1…
Wild cluster boostrap t- CGD(2008)Hi, I am asked to write Stata command reproduce the results of Wild Cluster Boostrap T as in " Came…
reghdfe produce coefficients with opposite signI have problem with re-producing results using the same data using reghdfe command. The version of …
Regressions by industry - quarterDear users, I hope that you may help me with the following issue. I'm running regressions by indust…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a graph for Odds Ration and CI from logistic regression results
Post a Comment