Learn R Programming

nlme (version 3.1-130)

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

"Dim"(object, groups, ...)

Arguments

object
an object inheriting from class "corSpatial", representing a spatial correlation structure.
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.

Value

a list with components:

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 DataLab