model_best | R Documentation |
A function for selecting the best model fitted by the
function model_est
or model_est_single
.
model_best(models, ic = BIC)
models |
An object generated by the funcion
|
ic |
Information criterion: |
A list containing the following elements:
data |
Tibble with the data used in fitting the model. |
model |
An |
n_obs |
Number of observations of the dependent variable. |
h |
Horizon used in direct estimation. |
model_est
, model_est_single
inf_head <- coreinf_br[["ipca"]]
inf_corems <- coreinf_br[["ipcams"]]
pq <- lags(2, 1)
model1 <- model_est(inf_head, inf_corems, 2, pq)
model_best(model1)
p <- unique(lags(2, 1)[, 1:2])
model2 <- model_est_single(inf_head, 2, p)
model_best(model2, ic = AIC)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.