I have a logistic regression graph which contains an unadjusted (univariate) model between age, gender, ethnicity, etc, and also a fully adjusted (multivariate) model which shows how each variable changes between the unadjusted and adjusted models.
Array
I want to drop the “Constant” off the y-axis (and the corresponding data point). I managed to drop the combined unadjusted _cons (which overlapped constants from each of the variables), but can’t get rid of the adjusted _cons. Does anyone have a suggestions as to how I could do that? This is my code:
quietly eststo m1: logit Actioned ageY
quietly eststo m2: logit Actioned Gender
quietly eststo m3: logit Actioned i.Ethnicity
quietly eststo m4: logit Actioned i.quintile
quietly eststo m5: logit Actioned ltdxCount
quietly eststo m6: logit Actioned ltrxCount
quietly eststo m7: logit Actioned ageY Gender i.Ethnicity i.quintile ltdxCount ltrxCount
coefplot (m1, offset(.15))(m2, offset(.15))(m3, offset(.15))(m4, offset(.15))(m5, offset(.15))(m6, offset(.15)) (m7, drop(*#*) offset(-.15)) (m7, keep(*#*) pstyle(p2)), legend(off) msymbol(D) mfcolor(white) ciopts(lwidth(*3) lcolor(*.6)) ///
coeflabels(_cons = Constant, wrap(20) notick labcolor(black) labsize(medsmall) labgap(3)) drop(_cons) xline(1) eform xtitle(Odds ratio)
Thank you!
Related Posts with coefplot graph: how to drop _cons in mixed-model graph?
Dynamically set graph combine optionsHi, i want to combine many graphs into one with graph combine, but number of the graphs is not const…
Finding values that are two standard deviations above the meanI need to find values of a variable that are two standard devotions above the mean. I want to create…
Data transformation after multiple imputationHi Statalist, I am new to the forum and to multiple imputations. I plan to run a cox regression mod…
A few questions about STATA difference in difference using data from multiple time periodsDear all, I want to see the influence of a housing policy on housing prices in two regions, one was…
Sequential logit postestimationDear all, I am making estimation of a sequential logit model. Please I have two questions: 1- I wou…
Subscribe to:
Post Comments (Atom)
0 Response to coefplot graph: how to drop _cons in mixed-model graph?
Post a Comment