Convert Covariance Matrix to Correlation Matrix --- Generic Function
Convert Covariance Matrix to Correlation Matrix --- Generic Function
This function converts the covariance matrix from a fitted model into the correlation matrix.
var2cor(object,...)
Arguments
object: any fitted model object from which a covariance matrix may be extracted.
...: absorbs any additional argument.
Details
This function is generic (see methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: nlreg, summary.nlreg, mpl and summary.mpl.
Returns
the correlation matrix of the estimates from a fitted model.