modify_pbox | R Documentation |
Internal method to modify specific parameters in a nested list structure by applying deviations.
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))
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. |
Modified list of parameters.
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.