It creates the RECM (Restricted Error Correction Model) specification according to the given "formula" and the corresponding "order" of the underlying ARDL.
build_recm_formula(parsed_formula, order, case)
A list containing the formula parts as returned from
parse_formula
.
A numeric vector with the underlying ARDL order as returned from
parse_order(restriction = FALSE)
.
An integer from 1-5 or a character string specifying whether the 'intercept' or the 'trend' have to participate in the long-run/cointegrating relationship/equation (see 'Details').
build_recm_formula
returns a list containing the full formula
and the independent and dependent parts of the formula separated. The full
formula is ready to be used as input in the dynlm
function providing
also the 'ect' (error correction term) to the data.