Learn R Programming

clmstan (version 0.1.1)

coef.clmstan: Extract coefficients from clmstan objects

Description

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

Usage

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

Value

A named numeric vector with:

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

  • Regression coefficients (variable names from formula)

Arguments

object

A clmstan object

type

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

...

Additional arguments (ignored)

Examples

Run this code
if (FALSE) {
fit <- clm_stan(rating ~ temp, data = wine)
coef(fit)
coef(fit, type = "median")
}

Run the code above in your browser using DataLab