Hello all,
I am writing to seek some guidance on a 'problem'. I am estimating a gravity model using a panel using multiple methods (fixed effects, time-varying FE etc). Using those estimates I can then compare the predicted values (using the "predict" command) with the actual ones. Would this also work in the same manner for PPML estimation? That is, something along the lines of:
On the website http://personal.lse.ac.uk/tenreyro/SampleDoS.do (Log of Gravity) the authors mention: "If you want to compute 'undertrading' and 'overtrading' after fixed-effects regressions with panel data, you need to obtain a set of residuals with zero mean." However, I don't understand how (and why it makes a difference) I would implement this.
Thanks.
I am writing to seek some guidance on a 'problem'. I am estimating a gravity model using a panel using multiple methods (fixed effects, time-varying FE etc). Using those estimates I can then compare the predicted values (using the "predict" command) with the actual ones. Would this also work in the same manner for PPML estimation? That is, something along the lines of:
Code:
predict fitppml, xb predict stdpred_fitppml, stdp generate upbound_fitppml = yhat_fitppml + invnormal(0.975)*stdpred_fitppml generate lowbound_fitppml = yhat_fitppml - invnormal(0.975)*stdpred_fitppml
Thanks.
Comment