draw_from_prior: Sample from prior distributions

View source: R/draw_from_prior.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).


RprobitB documentation built on Aug. 26, 2025, 1:08 a.m.