Dimensions of a corSpatial Object

DESCRIPTION:

if groups is missing, it returns the Dim attribute of object ; otherwise, calculates the dimensions associated with the grouping factor.

USAGE:

Dim(object, groups) 

REQUIRED ARGUMENTS:

object
an object inheriting from class corSpatial, representing a spatial correlation structure.

OPTIONAL ARGUMENTS:

groups
an optional factor defining the grouping of the observations; observations within a group are correlated and observations in different groups are uncorrelated.

VALUE:

a list with components:
N
length of groups
M
number of groups
spClass
an integer representing the spatial correlation class; 0 = user defined class, 1 = corSpher, 2 = corExp, 3 = corGaus , 4 = corLin
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

SEE ALSO:

,

EXAMPLES:

Dim(corGaus(), getGroups(Orthodont))