Description Usage Arguments Value Examples
Run data augmented MCMC
1 |
data |
a list containing 4 elements:
|
priors |
a list containing two lists, functions and params, defining
the functions and parameters used as priors. If no input is supplied,
default priors are used. Default priors are described in the documentation
of |
configuration |
a list of settings. If no input is supplied, default
settings are used. Default settings are described in the documentation of
|
The function returns a list of two dataframes. The first dataframe contains the chains of the parameter values, with iterations stored as specified in the configuration. The second dataframe contains the chains of the statuses, with iterations stored as specified in the configuration.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
#run example dataset with default priors and default settings.
run_mcmc()
#run example dataset with custom priors and custom settings.
my_priors <- generate_priors(f_beta = dnorm, p_beta = c(0.02,0.001))
my_configuration <- generate_configuration(n_iter = 300, n_burnin = 100)
run_mcmc(data = patient_data_simulated, priors = my_priors,
configuration = my_configuration)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.