I would like to compute the variance of forecast errors in a panel data setting as indicated in Array . In particular, I have build up what is called formula 2 in the manuscript as:
Code:
xtreg tasso_crescita_sales_prod L.log_sales L.dummy_2 L2.dummy_2 L3.dummy_2 mean_gr_rate_atc2 recalls_sales ageprodcat1 ageprodcat2 ageprodcat3 ageprodcat4 newmolfirm newmolmarket i.Year, fe vce(cluster idpr)
Code:
predict yhat, xbu gen forecast_errors = tasso_crescita_sales - yhat
Thank you very much,
Federico
0 Response to Forecast errors
Post a Comment