View source: R/formula_builders.R
build_recm_formula | R Documentation |
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)
parsed_formula |
A list containing the formula parts as returned from
|
order |
A numeric vector with the underlying ARDL order as returned from
|
case |
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.
Kleanthis Natsiopoulos, klnatsio@gmail.com
build_ardl_formula
, build_uecm_formula
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.