Skip to contents

getCovarianceMatrix

Usage

getCovarianceMatrix(list_stdev, list_covar)

Arguments

list_stdev

standard deviation list

list_covar

covariance list

Value

covariance matrix

Examples

vector_sd <- c(1,2, 3)
names(vector_sd) <- c("varA", "varB", "varC")
vector_covar <- c(8, 12, 24)
names(vector_covar) <- c("varA.varB", "varA.varC", "varB.varC")
covMatrix <- getCovarianceMatrix(vector_sd, vector_covar)