Dim.corSpatial {nlme} | R Documentation |
if groups
is missing, it returns the Dim
attribute of
object
; otherwise, calculates the dimensions associated with
the grouping factor.
## S3 method for class 'corSpatial' Dim(object, groups, ...)
object |
an object inheriting from class |
groups |
an optional factor defining the grouping of the observations; observations within a group are correlated and observations in different groups are uncorrelated. |
... |
further arguments to be passed to or from methods. |
a list with components:
N |
length of |
M |
number of groups |
spClass |
an integer representing the spatial correlation class;
0 = user defined class, 1 = |
sumLenSq |
sum of the squares of the number of observations per group |
len |
an integer vector with the number of observations per group |
start |
an integer vector with the starting position for the distance vectors in each group, beginning from zero |
Jose Pinheiro and Douglas Bates bates@stat.wisc.edu
Dim(corGaus(), getGroups(Orthodont)) cs1ARMA <- corARMA(0.4, form = ~ 1 | Subject, q = 1) cs1ARMA <- Initialize(cs1ARMA, data = Orthodont) Dim(cs1ARMA)