enw_priors_as_data_list | R Documentation |
data.frame
to listConverts priors defined in a data.frame
into a list
format for use by stan. In addition it adds "_p" to all
variable names in order too allow them to be distinguished from
their standard usage within modelling code.
enw_priors_as_data_list(priors)
priors |
A |
A named list with each entry specifying a prior as a length two vector (specifying the mean and standard deviation of the prior).
Functions used to help convert models into the format required for stan
enw_formula_as_data_list()
,
enw_get_cache()
,
enw_model()
,
enw_pathfinder()
,
enw_replace_priors()
,
enw_sample()
,
enw_set_cache()
,
enw_stan_to_r()
,
enw_unset_cache()
,
remove_profiling()
,
write_stan_files_no_profile()
priors <- data.frame(variable = "x", mean = 1, sd = 2)
enw_priors_as_data_list(priors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.