Generate samples from the prior distribution of model parameters
Source:R/initialization.R
prior_sample.Rd
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.
Arguments
- dat
A
list
containing the data and prior parameters, typically generated bymake_data()
ormake_data_sdm()
.- model
A
character
string specifying the model type. Must be either "drm" or "sdm". Defaults to "drm".