Skip to contents

Convert a correlation matrix into a covariance matrix

Usage

cor2cov(sigma, cormat)

Arguments

sigma

vector of standard deviations. The order of standard deviations should correspond to the column order in 'cormat'.

cormat

a symmetric numeric correlation matrix

Value

The covariance matrix

Author

Thomas Debray <thomas.debray@gmail.com>