Skip to contents

This function extracts the standard deviations for the variables involved in the correlation.

Usage

getStandardDeviationInCorrelation(list_var, between_var)

Arguments

list_var

A list containing the variables and their attributes.

between_var

A character vector containing the names of the variables involved in the correlation.

Value

A numeric vector containing the standard deviations for the variables in the correlation.

Examples

list_var <- init_variable(name = "varA", mu = 0, sd = 5, level = 3) %>%
         init_variable(name = "varB", mu = 0, sd = 25, level = 3)
#> Variable name should not contain digits, spaces, or special characters.
#> If any of these are present, they will be removed from the variable name.
#> Variable name should not contain digits, spaces, or special characters.
#> If any of these are present, they will be removed from the variable name.
between_var <- c("varA", "varB")
getStandardDeviationInCorrelation(list_var, between_var)
#> [1]  5 25