Skip to contents

This function computes the covariation between two variables (A and B) given their correlation and standard deviations.

Usage

compute_covariation(corr_AB, sd_A, sd_B)

Arguments

corr_AB

The correlation coefficient between variables A and B.

sd_A

The standard deviation of variable A.

sd_B

The standard deviation of variable B.

Value

The covariation between variables A and B.

Examples

corr <- 0.7
sd_A <- 3
sd_B <- 4
compute_covariation(corr, sd_A, sd_B)
#> [1] 8.4