coef.clmstan: Extract coefficients from clmstan objects

View source: R/methods.R

coef.clmstanR Documentation

Extract coefficients from clmstan objects

Description

Returns posterior point estimates (mean or median) for all model parameters.

Usage

## S3 method for class 'clmstan'
coef(object, type = c("mean", "median"), ...)

Arguments

object

A clmstan object

type

Type of point estimate: "mean" (default) or "median"

...

Additional arguments (ignored)

Value

A named numeric vector with:

  • Threshold coefficients (e.g., "1|2", "2|3", ...)

  • Regression coefficients (variable names from formula)

Examples

## Not run: 
fit <- clm_stan(rating ~ temp, data = wine)
coef(fit)
coef(fit, type = "median")

## End(Not run)


clmstan documentation built on June 29, 2026, 5:06 p.m.