Learn R Programming

drm (version 0.5-8)

cluster: Identify clusters

Description

This is a special function used in the drm or depratio syntax. It identifies correlated groups of observations, and is used on the right hand side of a formula.

Usage

cluster(x)

Arguments

x
A character, factor, or numeric variable.

Value

Details

The function's only action is semantic, to mark a variable as the cluster indicator.

See Also

drm, depratio, Time

Examples

Run this code
formula(wheeze~cluster(id))

Run the code above in your browser using DataLab