AR: Custom AR with extra information

View source: R/Utils.Estimates.R

ARR Documentation

Custom AR with extra information

Description

Custom AR with extra information

Usage

AR(y, x, max.lag, criterion = "aic")

Arguments

y

A dependent variable.

x

Explanatory variables.

max.lag

The maximum number of lags.

criterion

A criterion for lag number estimation.

Value

A list of:

  • beta: estimates of coefficients,

  • residuals: estimated residuals,

  • predict: forecasted values,

  • t.beta: t-statistics for beta,

  • lag: estimated number of lags.


d9d6ka/RANEPA-R documentation built on May 4, 2024, 7:11 a.m.