View source: R/estimate_secondary.R
update_secondary_args | R Documentation |
This functions allows the user to more easily specify data driven or model
based priors for estimate_secondary()
from example from previous model
fits using a <data.frame>
to overwrite other default settings. Note that
default settings are still required.
update_secondary_args(data, priors, verbose = TRUE)
data |
A list of data and arguments as returned by |
priors |
A |
verbose |
Logical, defaults to |
A list as produced by create_stan_data()
.
priors <- data.frame(variable = "frac_obs", mean = 3, sd = 1)
data <- list(obs_scale_mean = 4, obs_scale_sd = 3)
update_secondary_args(data, priors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.