ac_test: Autocorrelation tests

Description Usage Arguments Examples

View source: R/ac_test.R

Description

Autocorrelation tests

Usage

1
ac_test(x, lag_max = 5)

Arguments

x

the residuals or an ivx object.

lag_max

the maximum length of lags.

Examples

1
2
3
obj <- ivx(hpi ~ cpi + def + int + log(res), data = ylpc)
lmtest::bgtest(hpi ~ cpi + def + int + log(res), data = ylpc)
ac_test(obj, 5)

ivx documentation built on Nov. 27, 2020, 5:09 p.m.