powered by
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 ANY modify_pbox(all_parms, params_list, sigma = 0.05, range = seq(-3, 3, 1))
# S4 method for ANY modify_pbox(all_parms, params_list, sigma = 0.05, range = seq(-3, 3, 1))
Modified list of parameters.
nested list of parameters from the pbox object.
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")).
Standard deviation used for calculating parameter deviations.
Range values for generating deviations.
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"))
Run the code above in your browser using DataLab