draw_from_prior: Sample from prior distributions

View source: R/model_selection.R

draw_from_priorR 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 RprobitB_prior, which is the output of check_prior.

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)

loelschlaeger/RprobitB documentation built on Oct. 15, 2024, 11:08 a.m.