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
OLS MLR Regression Analysis PlanHello All, Hoping to receive feedback on a plan for an OLS MLR analysis planning in STATA. Questio…
Merging household census data for logistic regressionGood evening everyone, First, I'd like to say thank you to all of these helpful users from which I …
how to use stata discretizing a continuous variable optimally?Hi guys, I just meet an interesting problem. My boss asked me to recode a continuous variable, for …
How to solve error "estimation result constrained not found" in lrtest commandHi everyone! I've run the following syntaxes to compute the global test of the parallel lines assump…
Stata: Statistics vs "Data Science"I have recently joined a company heavy in "Data Science". I thought, great, I love statistics myself…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a graph for Odds Ration and CI from logistic regression results
Post a Comment