update_parameter: Updating parameters given a grid.

Description Usage Arguments Value Examples

View source: R/auxiliar.R

Description

This function updates the parameter list by a set of values coming from a data-frame or tibble. It is a fundamental for glmnet, glm and arima models.

Usage

1
update_parameter(old_parameter, new_parameter, model, optim = FALSE)

Arguments

old_parameter

List. Parameters to be used to estimate model or define the job to be done.

new_parameter

List or data-frame. Parameters that will replace the original list.

model

String. Model where the parameters will be replaced.

optim

Logical. Wether of not the results will be used for hyperparameter tuning of GLMNET models.

Value

List of updated parameters.

Examples

1
2
3
4
## Not run: 
update_parameter()

## End(Not run)

opoyc/autoforecast documentation built on May 18, 2021, 1:29 a.m.