Learn R Programming

MAINT.Data (version 2.6.2)

cor--methods: Methods for function cor in Package `MAINT.Data'

Description

S4 methods for function cor. These methods extract estimates of correlation matrices for the models fitted to Interval Data.

Usage

# S4 method for IdtNDE
cor(x)
# S4 method for IdtSNDE
cor(x)
# S4 method for IdtNandSNDE
cor(x)
# S4 method for IdtMxNDE
cor(x)
# S4 method for IdtMxSNDE
cor(x)

Value

For the IdtNDE, IdtSNDE and IdtNandSNDE methods or IdtMxNDE, IdtMxSNDE methods with slot “Hmcdt” equal to TRUE: a matrix with the estimated correlations.
For the IdtMxNDE, and IdtMxSNDE methods with slot “Hmcdt” equal to FALSE: a three-dimensional array with a matrix with the estimated correlations for each group at each level of the third dimension.

Arguments

x

An object representing a model fitted to interval data.

See Also

Examples

Run this code

# Create an Interval-Data object containing the intervals for 899 observations 
# on the temperatures by quarter in 60 Chinese meteorological stations.

ChinaT <- IData(ChinaTemp[1:8],VarNames=c("T1","T2","T3","T4"))

ChinaT_NE <- mle(ChinaT)

# Display correlation estimates

print(cor(ChinaT_NE))

 

Run the code above in your browser using DataLab