sample_prior_RGS_ | R Documentation |
Use Random Grid Sampling (RGS) to sample from prior distribution This (_) version of the function outputs a vector of values if .n_samples = 1
sample_prior_RGS_(.n_samples = 1, .l_params = .l_params_, ...)
.n_samples |
An integer specifying the number of samples to be generated. |
.l_params |
A list that contains a vector of parameter names, distributions and distributions' arguments. |
... |
additional arguments, for example: .seed_no to set a seed number. |
A table with each parameter RGS samples in a separate column
## Not run:
v_params_names <- c("p_Mets", "p_DieMets")
v_params_dists <- c("unif", "unif")
args <- list(list(min = 0.04, max = 0.16),
list(min = 0.04, max = 0.12))
l_params <- list('v_params_names' = v_params_names,
'v_params_dists' = v_params_dists,
'args' = args)
sample_prior_RGS_(.l_params = l_params,
.n_samples = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.