I want to run fiscal multipliers in good and bad times for 15 countries using forecast error to identify the fiscal policy shocks and the local projection method to estimate the impulse response of output to fiscal policy shocks.
when I read a paper, forecast error is estimated in the following way:
forecasts of government spending are taken from October publications of the IMF’s WEO. Then, the fiscal spending shocks are identified as the forecast errors of government spending. Thus, FEi,t=gi,t(actual)-gi,t(forecast) where gi,t= Gi,t/Yi,t is government spending as a share of GDP. The actual government spending comes from the October WEO of the following year. i-refers to country and t refers to time.
can someone tell me the codes in STATA or eviews how to estimate forecast error and LPM for panel data?