Sample from prior distributions
This function returns a sample from each parameter's prior distribution.
draw_from_prior(prior, C = 1)
prior
: An object of class RprobitB_prior
, which is the output of check_prior
.C
: The number of latent classes.A list of draws for alpha
, s
, b
, Omega
, and Sigma
(if specified for the model).
prior <- check_prior(P_f = 1, P_r = 2, J = 3) RprobitB:::draw_from_prior(prior, C = 2)
Useful links