nlme (version 3.1-148)

summary.corStruct: Summarize a corStruct Object

Description

This method function prepares object to be printed using the print.summary method, by changing its class and adding a structName attribute to it.

Usage

# S3 method for corStruct
summary(object, structName, …)

Arguments

object

an object inheriting from class "corStruct", representing a correlation structure.

structName

an optional character string defining the type of correlation structure associated with object, to be used in the print.summary method. Defaults to class(object)[1].

some methods for this generic require additional arguments. None are used in this method.

Value

an object identical to object, but with its class changed to summary.corStruct and an additional attribute structName. The returned value inherits from the same classes as object.

See Also

corClasses, corNatural, Initialize.corStruct, summary

Examples

Run this code
# NOT RUN {
cs1 <- corAR1(0.2)
summary(cs1)
# }

Run the code above in your browser using DataCamp Workspace