modify_pbox {pbox}R Documentation

Modify Parameters Box

Description

Internal method to modify specific parameters in a nested list structure by applying deviations.

Usage

modify_pbox(all_parms, params_list, sigma = 0.05, range = seq(-3, 3, 1))

## S4 method for signature 'ANY'
modify_pbox(all_parms, params_list, sigma = 0.05, range = seq(-3, 3, 1))

Arguments

all_parms

nested list of parameters from the pbox object.

params_list

Named list where each name corresponds to a variable in the dataset and the value is a vector of parameter names to modify (e.g. list(Vietnam="mu")).

sigma

Standard deviation used for calculating parameter deviations.

range

Range values for generating deviations.

Value

Modified list of parameters.

Examples

some_distr<-list(A=list(mu = 31.07, sigma = 0.28),
B=list(mu = 34.4, sigma = 0.98, nu = 1.7),
C=list(mu = 31.4, sigma = 0.34),
D=list(mu = 25.6, sigma = 0.24))
modify_pbox(some_distr, list(A = "mu"))

[Package pbox version 0.1.8 Index]