Reconstruct the cluster variable from a nlme model.
.getCluster2(object, ...)# S3 method for gls
.getCluster2(object, cluster, data, ...)
# S3 method for lme
.getCluster2(object, ...)
A list containing:
cluster: the cluster index for each observation.
n.cluster: the number of clusters.
a gls
or lme
object.
[internal] Only used by the generic method.
[integer vector] the grouping variable relative to which the observations are iid.
Only required for gls
models with no correlation argument.
[data.frame] the data set.