Hi,
I have a panel data set and I have run the following model
with an example of my dataset being
And the data is set as
I get my results as follows
I then want to obtain the marginal effects of all the variables especially the lagged value of lnRelativewagespend , however when I attempt this STATA returns the error message ' default prediction is a function of possibly stochastic quantities other than e(b)'
I dont understand why it is doing this would anyone be able to help?
Many thanks
I have a panel data set and I have run the following model
Code:
xtreg lnYearRanking l.lnYearRanking lnRelativewagespend l.lnRelativewagespend i.LeagueNumber l.ib3.PR LeagueNumber#c.lnRelativewagespend
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int TeamNumbers double(lnYearRanking lnRelativewagespend) byte LeagueNumber long PR 1 -2.867898941040039 . 4 3 1 -2.3632097244262695 . 4 3 1 -2.2335922718048096 . 4 3 1 -2.116255521774292 . 4 3 1 -1.2947272062301636 . 4 3 1 -2.008823871612549 . 4 3 1 -2.508437156677246 . 4 3 1 -2.116255521774292 . 4 3 1 -2.3632097244262695 . 4 3 2 -.597836971282959 . 3 3 2 -.2814124524593353 . 3 3 2 -.19415602087974548 . 3 3 2 -.597836971282959 . 3 3 2 -.19415602087974548 . 3 3 2 -.8421827554702759 . 3 2 2 -1.2321436405181885 . 4 1 2 -.2814124524593353 . 3 3 2 -.2376716583967209 . 3 3 2 -.6451379656791687 . 3 3 2 -.7419373393058777 . 3 3 2 -.8421827554702759 . 3 2 2 -3.102341890335083 . 4 3 2 -1.1130009889602661 . 4 1 2 -.15082289278507233 . 3 3 2 -.36974701285362244 -1.9844415187835693 3 3 2 .021506205201148987 -1.0167139768600464 3 1 2 .7419373393058777 -.7612044811248779 2 3 2 1.2321436405181885 -.3074471652507782 2 1 3 -2.2335922718048096 -2.930802822113037 4 3 3 -2.867898941040039 -2.9393718242645264 4 3 3 -2.867898941040039 -2.7565817832946777 4 3 3 -2.116255521774292 -2.871849536895752 4 3 4 -2.116255521774292 . 4 3 4 -1.359626054763794 . 4 3 4 -2.008823871612549 . 4 3 4 -1.7303905487060547 . 4 3 4 -4.521788597106934 . 4 2 5 3.4011974334716797 1.1270431280136108 1 3 5 4.521788597106934 1.1688859462738037 1 3 5 3.8177123069763184 1.2113429307937622 1 3 5 3.8177123069763184 1.2744776010513306 1 3 5 3.8177123069763184 1.1761025190353394 1 3 5 4.521788597106934 1.5614136457443237 1 3 5 3.8177123069763184 1.4554295539855957 1 3 5 4.521788597106934 1.541187047958374 1 3 5 3.8177123069763184 1.432999610900879 1 3 5 3.102341890335083 1.574578046798706 1 3 5 3.102341890335083 1.5737515687942505 1 3 5 3.4011974334716797 1.4782519340515137 1 3 5 3.102341890335083 1.3774480819702148 1 3 5 3.4011974334716797 1.3763655424118042 1 3 5 3.102341890335083 1.359984278678894 1 3 5 3.4011974334716797 1.4343746900558472 1 3 5 3.102341890335083 1.474872350692749 1 3 5 3.102341890335083 1.5022573471069336 1 3 5 3.4011974334716797 1.5203529596328735 1 3 6 2.867898941040039 .7058887481689453 1 3 6 2.508437156677246 .5919342637062073 1 3 6 2.6741485595703125 .72902512550354 1 3 6 2.6741485595703125 .8134595155715942 1 3 6 2.3632097244262695 .8039206862449646 1 3 6 2.3632097244262695 .8804538249969482 1 3 6 1.5712167024612427 .8463802337646484 1 3 6 2.6741485595703125 .80721515417099 1 3 6 2.116255521774292 .772148609161377 1 3 6 1.5712167024612427 .853588879108429 1 3 6 2.008823871612549 .18860290944576263 1 3 6 2.6741485595703125 .8779451847076416 1 3 6 2.6741485595703125 1.0405687093734741 1 3 6 2.6741485595703125 1.0909303426742554 1 3 6 2.2335922718048096 .9887481927871704 1 3 6 1.5712167024612427 .7545763850212097 1 3 6 1.6486586332321167 .7239120602607727 1 3 6 1.6486586332321167 .6410467624664307 1 3 6 1.4975199699401855 .7181633114814758 1 3 7 -2.116255521774292 . 4 3 7 -1.4271163940429688 . 4 3 7 -2.2335922718048096 . 4 3 7 -1.359626054763794 . 4 3 7 -4.521788597106934 . 4 2 7 -2.508437156677246 . 4 3 7 -2.008823871612549 . 4 3 7 -1.8170772790908813 . 4 3 7 -2.3632097244262695 . 4 3 7 -3.102341890335083 . 4 3 7 -3.4011974334716797 . 4 3 7 -3.4011974334716797 . 4 3 7 -3.8177123069763184 . 4 2 8 1.1716374158859253 . 2 1 8 1.359626054763794 . 1 2 8 .597836971282959 . 2 3 8 1.0560526847839355 . 2 3 8 .45953232049942017 . 2 3 8 .15082289278507233 . 2 2 8 -.7419373393058777 . 3 3 8 -.4144337773323059 . 3 3 8 -.45953232049942017 . 3 3 8 -.1076306626200676 . 3 1 8 .2814124524593353 -1.5244444608688354 2 3 8 .36974701285362244 -1.1675177812576294 2 3 end label values PR PR label def PR 1 "Promotion", modify label def PR 2 "Relegation", modify label def PR 3 "ɴone", modify
Code:
xtset Teamnumbers SeasonStart
I dont understand why it is doing this would anyone be able to help?
Many thanks
Comment