Skip to contents

Rescale correlation matrix by variable standard deviations to yield a covariance matrix.

Usage

cor_to_cov(m, sds = NULL)

Arguments

m

Symmetric correlation matrix.

sds

Standard deviations of the variables. Set to 1 for all varirables by default.

Value

Symmetric covariance matrix.