cor–methods {MAINT.Data} | R Documentation |
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 signature 'IdtNDE'
cor(x)
## S4 method for signature 'IdtSNDE'
cor(x)
## S4 method for signature 'IdtNandSNDE'
cor(x)
## S4 method for signature 'IdtMxNDE'
cor(x)
## S4 method for signature 'IdtMxSNDE'
cor(x)
Arguments
x |
An object representing a model fitted to interval data. |
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.
See Also
Examples
# 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))
[Package MAINT.Data version 2.7.1 Index]