cor2cov: Convert a correlation matrix into a covariance matrix

Description Usage Arguments Value Author(s)

View source: R/basics.r

Description

Convert a correlation matrix into a covariance matrix

Usage

1
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(s)

Thomas Debray <thomas.debray@gmail.com>


metamisc documentation built on Oct. 13, 2021, 3 p.m.