cs: Category Specific Predictors in 'brms' Models

Description Usage Arguments Details See Also Examples

View source: R/formula-cs.R

Description

Category Specific Predictors in brms Models

Usage

1
cs(expr)

Arguments

expr

Expression containing predictors, for which category specific effects should be estimated. For evaluation, R formula syntax is applied.

Details

For detailed documentation see help(brmsformula) as well as vignette("brms_overview").

This function is almost solely useful when called in formulas passed to the brms package.

See Also

brmsformula

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  
## Not run: 
fit <- brm(rating ~ period + carry + cs(treat), 
           data = inhaler, family = sratio("cloglog"), 
           prior = set_prior("normal(0,5)"), chains = 2)
summary(fit)
plot(fit, ask = FALSE)

## End(Not run) 
 

brms documentation built on Aug. 23, 2021, 5:08 p.m.