Hello everyone,
I run xtnbreg for the panel data and would like to use predict/margins following this regression.
xtnbreg dep ind1 ind2 c.ind3##c.ind4 $controlsDummies
margins, at(ind3=(0(0.1)1) ind4=(0.1 0.4)) level(99)
marginsplot
I also would like to plot a two-way graph for the interacted variables to check their joint effect on the predicted dependent variable (dep_hat).
twoway (lfitci dep_hat v3 if v4<=0.1 ,level(99) color(black) ytitle(dep_hat) xtitle(v3)) (lfitci dep_hat v3 if v4>=0.4,level(99) color(red) ytitle(dep_hat) xtitle(v3))
The problem is Stata says that the predictions are linear.
Does this mean that I need to take the exp(dep_hat) to see the real predicted values of the dependent variable? (because I have negative binomial)
Looking forward to your reply,
Thank you very much in advance for your support.
Related Posts with Interpretation of Predict / Margins Results following Nonlinear Regressions
MESR (multinational endogenous switching regression)Dear Statalist users Would you voluntarily give the Stata command for MESRM and how to calculate th…
Coefplot for coefficient of various estimatesThe following code is supposed to create a graph ( like the attached one here ) but unfortunately, I…
sigma_u=0 in random effects modelHi all, this is my first post so please let me know if anything can be improved upon! I am conducti…
create utf-8 xml file with tabmultHi everyone, I create a .xml file with various sheets which I later on open in Excel. One sheet has…
How to use the egen command and not set missing to zeroHi Statalist, I am using the egen rowlast command to tell me the depression scores for patients in …
Subscribe to:
Post Comments (Atom)
0 Response to Interpretation of Predict / Margins Results following Nonlinear Regressions
Post a Comment