gibbs_sampling | R Documentation |
This function draws from the posterior distribution of the probit model via Markov chain Monte Carlo simulation-
gibbs_sampling(
sufficient_statistics,
prior,
latent_classes,
fixed_parameter,
init,
R,
B,
print_progress,
ordered,
ranked
)
sufficient_statistics |
The output of |
prior |
A named list of parameters for the prior distributions. See the documentation
of |
latent_classes |
Either
|
fixed_parameter |
Optionally specify a named list with fixed parameter values for |
init |
The output of |
R |
The number of iterations of the Gibbs sampler. |
B |
The length of the burn-in period, i.e. a non-negative number of samples to be discarded. |
print_progress |
A boolean, determining whether to print the Gibbs sampler progress and the estimated remaining computation time. |
ordered |
A boolean, |
ranked |
TBA |
This function is not supposed to be called directly, but rather via
fit_model
.
A list of Gibbs samples for
Sigma
,
alpha
(if P_f>0
),
s
, z
, b
, Omega
(if P_r>0
),
d
(if ordered = TRUE
),
and a vector class_sequence
of length R
, where the r
th
entry is the number of latent classes after iteration r
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.