cosy: Set up COSY correlation structures

Description Usage Arguments Value See Also Examples

View source: R/formula-ac.R

Description

Set up a compounds symmetry (COSY) term in brms. The function does not evaluate its arguments – it exists purely to help set up a model with COSY terms.

Usage

1
cosy(time = NA, gr = NA)

Arguments

time

An optional time variable specifying the time ordering of the observations. By default, the existing order of the observations in the data is used.

gr

An optional grouping variable. If specified, the correlation structure is assumed to apply only to observations within the same grouping level.

Value

An object of class 'cosy_term', which is a list of arguments to be interpreted by the formula parsing functions of brms.

See Also

autocor-terms

Examples

1
2
3
4
5
6
7
## Not run: 
data("lh")
lh <- as.data.frame(lh)
fit <- brm(x ~ cosy(), data = lh)
summary(fit)

## End(Not run)

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