draw_from_prior {RprobitB} | R Documentation |
Sample from prior distributions
Description
This function returns a sample from each parameter's prior distribution.
Usage
draw_from_prior(prior, C = 1)
Arguments
prior |
An object of class |
C |
The number of latent classes. |
Value
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)
[Package RprobitB version 1.1.4 Index]