Dear all,
I have panel data (920 observations where 230 individuals participate in an experiment over 4 rounds), it is strongly balanced. Previously, I used xtset CASE (unique ID), round to set the data as panel data.
I have used xtlogit as I have a binary dependent variable and would like to obtain odd ratios (which I believe xtprobit does not do).
reb_sa is the dependent binary variable and PPD_ are continuous percentage point differences in 4 asset classes. Essentially, I would like to measure whether the percentage point differences drive the dependent variable. Apparently, that is not the case as, unfortunately, my individual coefficients are not significant. Nonetheless, I would like to plot margins graphs for a better visual analysis using the user-written gr0056/marginscontplot.ado (help marginscontplot)
I was hoping to have the binary (0/1) dependent variable on the y-axis, and the PPD in one asset class on the x-axis but as you can see, the scale goes from 1.3 to 1.6 (on the y-axis), which doesn't make much sense to me.

I would be most grateful if anyone could kindly explain what went wrong in my analysis. Is it because I have no significance in the model?
I am using Stata 17.
Kind regards!
I have panel data (920 observations where 230 individuals participate in an experiment over 4 rounds), it is strongly balanced. Previously, I used xtset CASE (unique ID), round to set the data as panel data.
I have used xtlogit as I have a binary dependent variable and would like to obtain odd ratios (which I believe xtprobit does not do).
Code:
xtlogit reb_sa c.PPD_sa c.PPD_ak c.PPD_ua c.PPD_g, or nolog Random-effects logistic regression Number of obs = 920 Group variable: CASE Number of groups = 230 Random effects u_i ~ Gaussian Obs per group: min = 4 avg = 4.0 max = 4 Integration method: mvaghermite Integration pts. = 12 Wald chi2(4) = 33.24 Log likelihood = -474.47296 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ reb_sa | Odds ratio Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- PPD_sa | 1.227043 .2445079 1.03 0.305 .8303182 1.813324 PPD_ak | .9948695 .1969983 -0.03 0.979 .6748637 1.466615 PPD_ua | 1.007079 .2066121 0.03 0.973 .6736452 1.505552 PPD_g | .9566518 .1891987 -0.22 0.823 .6492475 1.409605 _cons | 5.42123 .8201722 11.17 0.000 4.030143 7.292479 -------------+---------------------------------------------------------------- /lnsig2u | .4151769 .2776937 -.1290927 .9594466 -------------+---------------------------------------------------------------- sigma_u | 1.230707 .1708797 .9374927 1.615627 rho | .3152537 .0599454 .2108282 .4424065 ------------------------------------------------------------------------------ Note: Estimates are transformed only in the first equation to odds ratios. Note: _cons estimates baseline odds (conditional on zero random effects). LR test of rho=0: chibar2(01) = 37.67 Prob >= chibar2 = 0.000 . end of do-file
Code:
marginscontplot PPD_ak, at1(-25 -20 -15 -10 -5 -4 -3 -2 -1 0 1 2 3 4 5 10 15 20 25)
I would be most grateful if anyone could kindly explain what went wrong in my analysis. Is it because I have no significance in the model?
I am using Stata 17.
Kind regards!
Comment