Learn R Programming

NetworkToolbox (version 1.4.2)

cor2cov: Convert Correlation Matrix to Covariance Matrix

Description

Converts a correlation matrix to a covariance matrix

Usage

cor2cov(cormat, data)

Arguments

cormat

A correlation matrix

data

The dataset the correlation matrix is from

Value

Returns a covariance matrix

Examples

Run this code
# NOT RUN {
cormat <- cor(neoOpen)

covmat <- cor2cov(cormat,neoOpen)

# }

Run the code above in your browser using DataLab