Dear R users,

I need to calculate the univariate impulse response function for a series of 
data. Unfortunately the vars package does not support univariate analysis. If I 
try to evaluate a single series like this:
VAR(y=xres,p=1,type="none",ic="AIC")

the result is
Error in VAR(y = xres, p = 1, type = "none", ic = "AIC") : 
  The matrix 'y' should contain at least two variables. For univariate analysis 
consider ar() and arima() in package stats.

However, the irf function does not work with objects output by ar or arima. Any 
ideas what I could do?

Regards,
Martin

-----------------------------------------------------------------
Крайна цел - Да оцелееш! www.survivor.btv.bg

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to