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)

kvasilopoulos/ivx documentation built on May 11, 2021, 9:33 p.m.