Learn R Programming

clmstan (version 0.1.1)

apply_priors_to_stan_data: Apply user priors to Stan data

Description

Merges user-specified priors with default values and updates the Stan data list.

Usage

apply_priors_to_stan_data(stan_data, prior, threshold, full = FALSE)

Value

Updated stan_data list with prior values

Arguments

stan_data

A list of Stan data prepared by prepare_stan_data_*()

prior

A clm_prior object or NULL

threshold

The threshold structure ("flexible", "equidistant", "symmetric")

full

Whether this is a full model (with link parameter estimation)