Hi All,
According to this Stata blog post and this tutorial video, I expected that the margins coeficients after a probit be very similar to the results of LPM model. It usually works. For example here coefficients of race, age, and wage are almost identical in margins and regression:
But for my data it's not true. The coefficients of margins are quiet different from what I get from regression (LPM). Do you know what it happens?
Below is a small sample of my data. The difference in this sample is smaller than what I get with my whole sample. But, even in this smaller sample the difference is quite large between the coefficient of the k variable in the regression (0.12) and the coefficient of k in the margins output (0.05).
Thanks
According to this Stata blog post and this tutorial video, I expected that the margins coeficients after a probit be very similar to the results of LPM model. It usually works. For example here coefficients of race, age, and wage are almost identical in margins and regression:
Code:
sysuse nlsw88.dta probit married race age wage margins, dydx(*) atmeans reg married race age wage
Below is a small sample of my data. The difference in this sample is smaller than what I get with my whole sample. But, even in this smaller sample the difference is quite large between the coefficient of the k variable in the regression (0.12) and the coefficient of k in the margins output (0.05).
Thanks
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(Nexp_D k year section HH i j) 0 0 2007 3 0 2.3025851 15.377805 1 0 2009 2 0 3.3322046 14.426433 0 0 2011 2 0 3.6888795 15.27889 0 0 2013 2 0 4.0943446 15.508067 0 0 2015 2 0 3.8066626 16.109676 1 0 2007 1 0 2.484907 16.468065 0 0 2009 1 0 2.397895 16.441336 0 0 2011 1 0 3.4011974 16.403145 0 0 2013 1 0 2.564949 14.482695 1 0 2015 1 0 2.3025851 14.2186 0 0 2007 7 1 2.833213 13.87392 0 0 2009 1 0 4.4426513 15.736116 0 0 2011 1 0 4.941642 16.793394 1 0 2013 1 0 3.6888795 15.63886 0 0 2015 1 0 3.4011974 16.43577 0 0 2007 3 1 1.609438 12.012426 0 0 2009 4 1 1.609438 12.224598 0 0 2007 2 0 2.890372 13.648723 1 0 2009 2 0 2.3025851 14.34033 0 0 2011 2 0 3.912023 15.402943 0 0 2013 2 0 3.8066626 14.957743 0 0 2015 2 0 3.8066626 15.998454 1 0 2007 4 0 2.890372 13.088835 0 0 2007 2 1 .6931472 10.81215 0 0 2009 3 1 0 11.661812 0 0 2011 3 1 0 13.362721 1 0 2013 1 1 1.94591 13.853677 0 0 2015 1 1 1.7917595 14.82856 0 0 2007 2 1 1.3862944 11.984256 0 0 2009 2 1 1.3862944 12.346992 0 0 2007 3 0 3.912023 14.435515 0 0 2009 2 0 4.1108737 14.762905 0 0 2011 2 0 3.218876 14.865374 0 0 2013 2 0 2.1972246 13.85997 1 0 2015 3 0 2.1972246 13.860202 0 0 2007 2 0 3.555348 12.84799 0 0 2009 2 0 2.484907 12.99542 0 0 2011 2 0 2.890372 14.570724 0 0 2013 2 0 2.772589 13.725273 0 0 2015 2 0 2.484907 14.5059 0 0 2007 2 1 1.94591 13.077674 0 1 2007 2 0 4.4998097 15.26651 0 1 2009 2 0 4.1743875 15.89154 0 0 2011 2 0 4.6051702 17.01238 0 0 2007 1 0 3.6888795 14.13269 0 0 2009 1 0 2.397895 14.47045 0 0 2011 1 0 5.010635 15.402943 0 0 2013 1 0 4.787492 15.205634 0 0 2015 1 0 4.6051702 15.58972 0 0 2007 3 1 .6931472 10.115307 0 0 2009 2 1 .6931472 10.40905 0 0 2011 3 1 .6931472 11.49092 0 0 2007 1 1 1.7917595 12.425272 0 0 2007 1 0 1.7917595 11.823416 0 0 2009 1 1 .6931472 9.478772 0 0 2007 1 1 2.6390574 13.958892 0 0 2009 1 1 2.995732 12.387365 0 0 2011 1 0 3.3322046 13.793505 0 0 2013 1 0 2.484907 14.324818 0 0 2015 1 0 3.178054 14.352424 0 0 2007 2 1 2.484907 14.316677 0 0 2007 2 0 3.218876 13.649912 0 0 2009 2 0 3.135494 13.856635 0 0 2011 2 0 2.70805 13.807982 0 0 2013 2 0 3.218876 14.718597 0 0 2015 2 0 2.890372 14.850896 0 0 2007 1 0 4.787492 17.186691 0 0 2009 1 0 5.298317 16.968035 0 0 2011 1 0 2.833213 13.29921 0 0 2007 1 0 3.6888795 15.449242 0 0 2009 1 0 3.6888795 15.05237 0 0 2007 2 0 2.0794415 12.6079 0 0 2009 2 0 2.6390574 12.89164 0 0 2011 2 0 2.6390574 12.81932 0 0 2013 2 0 2.1972246 14.651577 0 0 2015 2 0 2.6390574 15.702392 0 0 2007 1 1 1.0986123 10.768788 0 0 2009 1 1 0 11.074025 0 0 2007 1 0 1.609438 11.894644 0 0 2009 1 1 1.609438 11.596215 0 0 2013 1 1 1.3862944 13.88471 0 0 2015 1 1 2.0794415 13.595247 0 0 2007 1 1 1.94591 12.648416 0 0 2007 1 0 3.433987 14.1687 1 0 2009 3 0 4.0943446 16.339886 0 1 2013 3 0 3.4011974 14.452973 1 1 2015 1 0 2.564949 15.215858 0 0 2007 1 1 4.0430512 14.33154 0 0 2009 1 1 2.995732 14.883858 0 0 2011 1 1 3.583519 14.726324 0 0 2013 3 1 3.135494 14.89548 0 0 2015 3 1 1.3862944 14.117247 0 0 2007 3 1 2.484907 13.727225 0 0 2009 3 1 2.484907 14.1287 0 0 2007 1 1 3.218876 13.2164 0 0 2009 3 1 2.995732 13.570766 0 0 2007 3 1 1.7917595 11.201496 0 0 2009 1 1 2.772589 12.683463 0 0 2011 1 1 1.609438 12.184067 end probit Nexp_D k year section HH i j margins, dydx(*) atmeans reg Nexp_D k year section HH i j
Comment