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
All coefficients insignificantI am a bit of a beginner when it comes to stata, I am using the program to create a fixed effects mo…
xtsccI have 17 countries across 37 years. Can I use -xtscc depvar indepvars i.year, fe? Is it better to i…
Removing variable completely changes regression outputHi all, I am investigating the impact of the degree of competitiveness of English football leagues …
Replicating xtabond2 results with xtdpdgmmHello, I am using the following two-step difference GMM model: Code: xtabond2 y l.y l.x1 l.x2 l.x3…
Latent class analysis: marginal predicted probabilities vs marginal predicted posterior probabilities and estat vs predictI have a latent class model that I'm broadly happy with. I want to be able to say that x% of the sam…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a graph for Odds Ration and CI from logistic regression results
Post a Comment