Gary King Homepage Previous: Loading in the Data Up: User's Guide Next: Example

Making Forecasts

To make forecasts, we require the data object, name the variables with a standard formula, and the model. A regression is estimated for each cross section (tied together by any chosen priors), and so an explanatory variable listed in the formula is used for a particular cross-section if it is in the formula and it is present in that cross-section's data set. (That is, a variable not measured for a cross-section is dropped only for that cross-section.) As an example:

ylc <- yourcast(formula=log(rspi2/popu2) ~ time, dataobj=dta, model="LC")

Finally, the output object ylc (of class yourcast) can be plotted with function plot.yourcast(ylc) summarized with function summarize(ylc), or accessed directly (use names(ylc) to see the contents).



Gary King 2010-09-14