nlme (version 3.1-86)

Dim.corSpatial: 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

## S3 method for class 'corSpatial':
Dim(object, groups, \dots)

Arguments

Value

a list with components:Nlength of groupsMnumber of groupsspClassan integer representing the spatial correlation class; 0 = user defined class, 1 = corSpher, 2 = corExp, 3 = corGaus, 4 = corLinsumLenSqsum of the squares of the number of observations per grouplenan integer vector with the number of observations per groupstartan integer vector with the starting position for the distance vectors in each group, beginning from zero

See Also

Dim, Dim.corStruct

Examples

Run this code
Dim(corGaus(), getGroups(Orthodont))

cs1ARMA <- corARMA(0.4, form = ~ 1 | Subject, q = 1)
cs1ARMA <- Initialize(cs1ARMA, data = Orthodont)
Dim(cs1ARMA)

Run the code above in your browser using DataCamp Workspace