Learn R Programming

RprobitB (version 1.2.0)

draw_from_prior: Sample from prior distributions

Description

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

Usage

draw_from_prior(prior, C = 1)

Value

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

Arguments

prior

An object of class RprobitB_prior, which is the output of check_prior.

C

The number of latent classes.