Dear Statalist,
I file to plot Confidence interval of margin contrast of dummy variables.
I am using coefplot from SSC Jann, B. (2014). Plotting regression coefficients and other estimates. The Stata Journal 14(4): 708-737.
my code looks like
[ sysuse auto, clear
* dummy and contrast (NOT plotting CI )
cap drop price2
recode price (min/10000 = 0) (10000/max = 1), gen(price2)
qui ologit rep78 i.price2##i.foreign
margins , dydx(price2) over(r.foreign) contrast(effect) post pr(outcome(1))
matrix list e(b)
matrix list e(V)][/CODE]
Interestingly, the issue is due when I compute contrast of margins and dummy at the same time.
When the variable is continuous I do not have this issue :
[ * continuous and contrast
qui ologit rep78 c.price##i.foreign
margins , dydx(price) over(r.foreign) contrast(effect) post pr(outcome(1))
matrix list e(b)
matrix list e(V)
coefplot][/CODE]
The issue is absent also when there is no contrast
[ * dummy and no contrast
qui ologit rep78 i.price2##i.foreign
margins , dydx(price2) over(foreign) post pr(outcome(1))
matrix list e(b)
matrix list e(V)
coefplot][/CODE]
Any help is really wellcome
Cesare Riillo
Related Posts with coefplot no plotting coinfidence intervals after contrast of margins for dummy variables only
Specification of Known Latent Classes using gsem lclassDear StataList, I am using Stata 14 on a Mac OS Yosemite 10.10.5. I am trying to use gsem to weight…
Help converting time series data to panel dataDear Members, I hope you could help me with the following problem, I have an dataset which contains…
how to create a categorical dummy from a group of dummy variablesHi everyone, I want to create a categorical dummy called Engagement, which should take its values f…
Invalid syntax; not obvious what is wrong.Dear All, I have a 7 year state panel of US states: Code: Code: * Example generated by -dataex-. …
How do I find for a certain value (numeric/string) in one variable if there exists a value (numeric/string) in another variable??My dataset look similar to this Id MathBaseline. WPMBaseline. NepaliBaseline MathPost WPMPost Nepal…
Subscribe to:
Post Comments (Atom)
0 Response to coefplot no plotting coinfidence intervals after contrast of margins for dummy variables only
Post a Comment