draw_from_prior function

Sample from prior distributions

Sample from prior distributions

This function returns a sample from each parameter's prior distribution.

draw_from_prior(prior, C = 1)

Arguments

  • prior: An object of class RprobitB_prior, which is the output of check_prior.
  • C: The number of latent classes.

Returns

A list of draws for alpha, s, b, Omega, and Sigma (if specified for the model).

Examples

prior <- check_prior(P_f = 1, P_r = 2, J = 3) RprobitB:::draw_from_prior(prior, C = 2)