POLY_MODEL-cash-set_prm: Set parameter for the model

POLY_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, shape and raw_z. For parameter sigma, its value will be updated, and the corresponding value in e will be updated. For parameter shape, its value will be updated, and the corresponding value in raw_z will be updated. For parameter raw_z, its value will be updated, and the corresponding value in z 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 <- poly_model(shape = 2, sigma = 0.5)

mod

mod$set_prm("shape", 4)

mod

mod$set_prm("sigma", 1)

mod

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