epict_posterior_as_prior | R Documentation |
Extract and summarise posteriors from a epict()
to use as
priors (based on the distributions given in epict_priors()
)
assuming they are independent normal
epict_posterior_as_prior(
fit,
priors = epict::epict_priors(),
variables = c(),
sub = "_int",
scale = 5
)
fit |
A cmdstanr fit as returned by |
priors |
A data frame of priors to update as defined in
|
variables |
A character vector of variables both in the posterior and in the default priors. |
sub |
A character string indicating the part of variable names in the posterior to remove. This can be used to link variable names in the model object to those expected as input. |
scale |
Numeric, defaults to 5. Amount to scale posterior standard deviations by. |
A data frame of priors
Sam Abbott
Functions used to design and setup models
adjustment_formula()
,
epict_formula_as_list()
,
epict_individual_priors_as_list()
,
epict_inference_opts()
,
epict_model_opts()
,
epict_obs_as_list()
,
epict_onset_obs_as_list()
,
epict_population_priors_as_list()
,
piecewise_formula()
,
select_piecewise_parameters()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.