MCMC sampler for the discrete-time binary state-transition model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
y |
dataframe; A dataframe with 3 columns: |
covariates |
list; A list of |
beta_start |
vector; a vector of starting values for model regression
coefficients of length |
n_iter |
integer; The number of mcmc iterations per chain after any burn in. Defaults to 1000. |
n_burnin |
integer; The number of samplers per chain to discard as burn in. Defaults to 1000. |
n_chains |
integer; the number of MCMC chains to sample. Defaults to 3. |
n_workers |
integer; the number of parallel workers to use. Defaults to 1. |
pp_checks |
Character vector; one or both of "mean", "variance".
Specifies the statistics for which posterior predictive checks should be run.
Set to |
beta_prior_mean |
vector; Prior means for model regression coefficients
in the the same order as beta_start. If |
beta_prior_sd |
vector; Prior standard deviations for model
regression coefficients in the the same order as beta_start. If |
random_effects |
vector; a vector of the names of covariates that
should be modeled with group-level (random) effects.
Names correspond to the names of the list elements of |
group_ids |
vector; If |
sd_eps_start |
vector; a vector of starting values for random effect
standard deviations. Values correspond to the items in |
correlated |
Boolean; Should correlations between random effects be
modeled? Only applies if there is more than one random effect modeled.
Defaults to |
monitor_random_effects |
Boolean; Defaults to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.