Cumulative Link Models with 'CmdStanR'
Asymmetric Exponential Power (AEP) link CDF
Apply custom prior specifications for link parameters
Apply user priors to Stan data
Aranda-Ordaz asymmetric link CDF
Combine Multiple Prior Specifications
Cauchy Distribution for Prior Specification
Unified CDF dispatcher for clmstan
Prior Specification for clmstan
Fit a Cumulative Link Model using CmdStanR
clmstan S3 Class
clmstan: Cumulative Link Models with CmdStanR
Complementary log-log CDF
Extract coefficients from clmstan objects
Compute category probabilities for all draws
Compute category probabilities for a single draw
Compute relative effective sample size for log-likelihood
Convert Prior Specification to Internal Format
MCMC Diagnostics for clmstan objects
Extract ACF values from clmstan object
Extract link parameter draws for full model
Extract posterior summary for link parameters
Extract log-likelihood matrix from clmstan object
Extract posterior summary for specified parameters
Extract posterior draws needed for prediction
Extract y_rep from Stan fit
Fitted values for clmstan objects
Flat (Improper Uniform) Prior Distribution
Format a distribution object as a string
Gamma Distribution for Prior Specification
Get base (fixed) link parameters from object
Get draws for plotting with bayesplot
Get coefficient names from design matrix
Get default prior for a link parameter
Get default priors for a threshold structure
Get default priors for threshold parameters
Get link parameters for a specific draw
Get required parameters for a link function
Get link type number for Stan
Get Stan model name based on threshold and full model flag
Get base type number for SP link
Generate threshold names in ordinal::clm style
Get threshold parameter information
Generalized Extreme Value (GEV) link CDF
Check if a link function requires parameters
Check if object is clmstan
Available Link Functions
Log-gamma link CDF
Log-log CDF
Leave-One-Out Cross-Validation for clmstan objects
Create design matrix
Map Parameter Class and Distribution to Legacy Parameter Names
Check if any link parameter requires estimation
Create a clmstan object (internal constructor)
Normal Distribution for Prior Specification
Parse formula for CLM
Plot method for clmstan objects
Posterior predictive distribution for clmstan objects
Predict method for clmstan objects
Prepare link parameters for full Stan model
Prepare link parameters for Stan
Prepare design matrix for prediction
Dispatch to appropriate data preparation function
Prepare data for equidistant threshold Stan model
Prepare data for full Stan model with link parameter inference
Prepare data for symmetric threshold Stan model
Prepare data for Stan model
Print method for clm_dist objects
Print method for clm_prior_list objects
Print method for clm_prior_spec objects
Print method for clm_prior objects
Print method for clmstan objects
Print method for summary.clmstan objects
Specify Prior Distributions
Symmetric Power (SP) link CDF
Student-t Distribution for Prior Specification
Summarize class prediction draws
Summarize probability draws
Summary method for clmstan objects
Get supported link functions
Get supported threshold structures
Validate full model parameters
Validate link parameters
Check if a link function is valid
Validate prediction inputs
Validate that the distribution is compatible with the parameter class
Validate prior values
Validate prior specification for a model
Validate threshold specification
Widely Applicable Information Criterion for clmstan objects
Fits cumulative link models (CLMs) for ordinal categorical data using 'CmdStanR'. Supports various link functions including logit, probit, cloglog, loglog, cauchit, and flexible parametric links such as Generalized Extreme Value (GEV), Asymmetric Exponential Power (AEP), and Symmetric Power. Models are pre-compiled using the 'instantiate' package for fast execution without runtime compilation. Methods are described in Agresti (2010, ISBN:978-0-470-08289-8), Wang and Dey (2011) <doi:10.1007/s10651-010-0154-8>, and Naranjo, Perez, and Martin (2015) <doi:10.1007/s11222-014-9449-1>.