Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


LMMstar (version 1.1.0)

RE: Random Effect Structure

Description

Variance-covariance structure parametrized via random effects. Can be stratified on a categorical variable.

Usage

RE(formula, var.cluster, var.time, ranef = NULL, add.time)

Value

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

Arguments

formula

formula indicating on which variable to stratify the residual variance and correlation (left hand side) and variables influencing the residual variance and correlation (right hand side).##'

var.cluster

[character] cluster variable.

var.time

[character] time variable.

ranef

[list] characteristics of the random effects

add.time

not used.

Details

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

Examples

Run this code
RE(~1, var.cluster = "id", var.time = "time")
RE(~gender, var.cluster = "id", var.time = "time")
RE(gender~(1|id), var.time = "time")

Run the code above in your browser using DataLab