Dear Stata Forum.
I have a (very) large panel dataset covering the years 1992-2011 with a total of 4,000,000 observations. The panel dataset is unbalanced. I use a random effect logit model to estimate the following model: d_promoted = constant + network + controls, where the d_promoted either takes the value 0 or 1. This runs. The problem occurs when I want to get the marginal effects.
I have used margins, dydx(*), however this produces the same results as the coefficients in the xtlogit.
I have also tried: mfx compute, predict(pu0) however, I get the following error: "predict() expression pu0 unsuitable for marginal-effect calculation.
Any ideas on how to get the marginal effects for all the variables after running xtlogit, re that are not the same as the coefficients.
Code:
xtset pnr aar
xtlogit d_promoted network_1 $controls1, re i(pnr) nolog
margins, dydx(*)
mfx compute, predict(pu0)
Thanks in advance, and best regards, Daniel.
I have a (very) large panel dataset covering the years 1992-2011 with a total of 4,000,000 observations. The panel dataset is unbalanced. I use a random effect logit model to estimate the following model: d_promoted = constant + network + controls, where the d_promoted either takes the value 0 or 1. This runs. The problem occurs when I want to get the marginal effects.
I have used margins, dydx(*), however this produces the same results as the coefficients in the xtlogit.
I have also tried: mfx compute, predict(pu0) however, I get the following error: "predict() expression pu0 unsuitable for marginal-effect calculation.
Any ideas on how to get the marginal effects for all the variables after running xtlogit, re that are not the same as the coefficients.
Code:
xtset pnr aar
xtlogit d_promoted network_1 $controls1, re i(pnr) nolog
margins, dydx(*)
mfx compute, predict(pu0)
Thanks in advance, and best regards, Daniel.
Comment