Learn R Programming

lpirfs (version 0.1.0)

find_lag_c: Compute optimal lag length

Description

Determine optimal lag length based on 'AICc', 'AIC', or 'BIC' criterion.

Arguments

y

List with left (endogenous) variables

x

List with right (exogenous) variables

lag_crit

Integer: 'AICc'= 1, 'AIC' = 2, 'BIC' = 3.