Converting monthly errors to quarterly

Questions and discussions on Vector Autoregressions

Converting monthly errors to quarterly

Postby raphael » Fri Sep 25, 2009 12:24 pm

Dear Tom,

In my VAR model, I first interpolate GDP into monthly figures, but to chart the results, I'd like to convert it back to quarterly data. Two problems then: CALENDAR has trouble working in monthly and quarterly mode, and most important, how can I compute quarterly standard errors (so that I can make a fan chart of confidence bands).

Thanks a lot
raphael
 
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

Re: Converting monthly errors to quarterly

Postby TomDoan » Tue Sep 29, 2009 4:25 pm

The following will convert 20 quarters of monthly values into their quarterly averages:

Code: Select all
set xq 1 20 = xm(3*t-2)+xm(3*t-1)+xm(3*t)


Note that these will go into consecutive entries so, until you change the CALENDAR, they will look like 20 months.

Converting impulse responses is easier than other types of data, since they don't have any actual dates associated with their entries; they are just 1,...,H exactly as is assumed in this little code snippet.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Converting monthly errors to quarterly

Postby raphael » Thu Oct 01, 2009 10:21 am

Thanks, I would have thought it would be more complicated than this ? Aren't errors non-linear ?
raphael
 
Posts: 15
Joined: Sat Mar 14, 2009 11:27 am

Re: Converting monthly errors to quarterly

Postby TomDoan » Fri Oct 02, 2009 2:28 pm

That depends. What I was talking about was applying shocks at the monthly level and aggregating the results to quarterly. If you're talking about estimating the model with monthly data then applying shocks that have been aggregated to quarterly shocks, yes, that would probably be quite non-linear.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to VARs (Vector Autoregression Models)

Who is online

Users browsing this forum: Google [Bot] and 2 guests