cluster: Identify clusters

Description Usage Arguments Value See Also Examples

Description

This is a special function used in the context of the models for grouped data. It identifies correlated groups of observations defined by using 'cluster' function, and is used of 'frailtyPenal' formula for fitting univariate and joint models.

Usage

1

Arguments

x

A character, factor, or numeric variable which is supposed to indicate the variable group

Value

x

A variable identified as a cluster

See Also

frailtyPenal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

data(readmission)
modSha <- frailtyPenal(Surv(time,event)~as.factor(dukes)+cluster(id),
n.knots=10,kappa=10000,data=readmission,hazard="Splines")

print(modSha)


## End(Not run)

socale/frailtypack documentation built on June 15, 2021, 3:37 a.m.