CUBIC_MODEL-cash-set_prm: Set parameter for the model

CUBIC_MODEL$set_prmR Documentation

Set parameter for the model

Description

This function store the values in the environment and update their values in the closed form expression of y, except the parameter sigma. For parameter sigma, its value will be updated, and the corresponding value in e will be updated.

Arguments

prm_name

List or Vector. Parameter character names.

prm_val

List or Vector. Parameter values.

Value

Return the object itself.

Examples


# Instantiate
mod <- cubic_model(a = -1, b = 1, c = 1, sigma = 0.5)

mod

mod$set_prm("a", 2)

mod

mod$set_prm("sigma", 1)

mod

TengMCing/visage documentation built on Aug. 28, 2024, 3:27 p.m.