These are the program and data file for replicating the real-time factor model in Aruoba, Diebold and Scotti(2009), "Real-Time
Measurement of Business Conditions," Journal of Business and Economic Statistics, vol 27, no 4, 417-427. This develops a business cycle index using four series observed at different frequencies (daily, weekly, monthly and quarterly). Because two of the series are "flows", the sum of the index across their observed range is needed. In the paper, this is done by creating a huge state vector, long enough to include an entire quarter of days. A more efficient way to do this is to create aggregator states:
x7(t) = x7(t-1)+x(t) if there is no weekly observation at t-1, x7(t)=x(t) if there is
xq(t) = xq(t-1)+x(t) if there is no quarterly observation at t-1, xq(t)=x(t) if there is
This requires "poking" a 1 or 0 into the diagonal element of the transition matrix, 1 when the first branch in a line holds, 0 when it's the second.
This also needs the updated version of the NBERCycles procedure to get the graphs correct. That's at
http://www.estima.com/forum/viewtopic.php?f=7&t=275
