# Set options
kardl_set(criterion = "BIC", differentAsymLag = TRUE)
# Get specific options
kardl_get("criterion", "differentAsymLag")
# Get all options.
# Note: In interactive use, avoid calling this directly to prevent cluttering the console.
# \donttest{
kardl_get()
# }
# Utilizing the magrittr pipe
library(magrittr)
# Set options and then get them
MyFormula<-CPI~ER+PPI+asym(ER)+deterministic(covid)+trend
kardl_set(ShortCoef = "L___{lag}.d.{varName}")
imf_example_data %>% kardl(MyFormula)
kardl_reset()
kardl_get()
imf_example_data %>% kardl_set(LongCoef= "LK{lag}_{varName}",ShortCoef = "D{lag}.d.{varName}") %>%
kardl(MyFormula)
kardl_get(c("LongCoef","ShortCoef"))
Run the code above in your browser using DataLab