powered by
The function returns parameter estimates and forecasts from OLS estimation for AR models
LS.AR(x, p, h, type, prob)
OLS parameter estimates
OLS residuals
point forecasts from OLS parameter estimates
Prediction Intervals based on OLS parameter estimates based on normal approximation
a time series data set
AR order
the number of forecast period
a vector of probabilities
"const" for the AR model with intercept only, "const+trend" for the AR model with intercept and trend
Jae H. Kim
data(IPdata) LS.AR(IPdata,p=6,h=10,type="const+trend", prob=c(0.05,0.95))
Run the code above in your browser using DataLab