Skip to contents

Generates samples from the prior distributions of the model parameters. This is primarily used for prior predictive checks or to generate initial values for MCMC.

Usage

prior_sample(dat, model = "drm")

Arguments

dat

A list containing the data and prior parameters, typically generated by make_data() or make_data_sdm().

model

A character string specifying the model type. Must be either "drm" or "sdm". Defaults to "drm".

Value

A list containing samples drawn from the prior distributions of the model parameters.

See also

Author

lcgodoy