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
cannot compute an improvement -- discontinuous region encounteredI am trying to build a multilevel model with the governrate-level indicators, but I get this problem…
reshape / transpose large dataset for mergingI am constructing a large timeseries dataset, with cases arranged around WDI_code (World Development…
How to repeat some command linesHello all, I need to repeat 3 line of commands in stata to create updated observations for three va…
How to loop element-by-element operations (e.g regression)Hello, I am trying to find a way to loop element by element operations across two lists of variables…
Summary stats with panel data: obtaining both N (overall obs.) and n (group obs.) by ethnic groupsDear all, I am trying to do some simple mean summary statistics for each variable with panel data (…
Subscribe to:
Post Comments (Atom)
0 Response to Interpretation of Predict / Margins Results following Nonlinear Regressions
Post a Comment