Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72764

Prediction after [xtreg] using [margins]

$
0
0
I'm using Stata to estimate a panel random effects model, and I would like to do some simple predictions based on various specified values of one of the regressors. Is there any problems with the following code? I was wondering if individual-specific error is taking into account when I use the margins command? Thanks

xtreg ln(wage) education tenure IQ, mle
margins, at(IQ = 'IQ mean value') atmean
margins, at(IQ = 'IQ mean value' + 1 S.D.) atmean
margins, at(IQ = 'IQ mean value' - 1 S.D.) atmean

Viewing all articles
Browse latest Browse all 72764

Trending Articles