CS: Compound Symmetry Structure

Description Usage Arguments Details Value Examples

View source: R/structure.R

Description

Variance-covariance structure where the residuals have constant variance and correlation. Can be stratified on a categorical variable.

Usage

1
CS(formula, var.cluster, var.time, ...)

Arguments

formula

formula indicating the cluster and a possible stratification.

var.cluster

[character] used to check the cluster variable in the formula.

var.time

[character] used to check the time variable in the formula.

...

not used.

Details

A typical formula would be ~1|id, indicating a variance constant over time and the same correlation between all pairs of times.

Value

An object of class CS that can be passed to the argument structure of the lmm function.

Examples

1
2
3
4
CS(~1|id)
CS(~1|id, var.time = "time", var.cluster = "id")
CS(group~1|id)
CS(group~time|id, var.time = "time", var.cluster = "id")

LMMstar documentation built on Nov. 5, 2021, 1:07 a.m.