smm {PRA} | R Documentation |
Second Moment Analysis.
Description
Second Moment Analysis.
Usage
smm(mean, var, cor_mat = NULL)
Arguments
mean |
The mean vector. |
var |
The variance vector. |
cor_mat |
The correlation matrix. |
Value
The function returns a list of the total mean, variance, and standard deviation for the project.
Examples
mean <- c(10, 15, 20)
var <- c(4, 9, 16)
cor_mat <- matrix(c(
1, 0.5, 0.3,
0.5, 1, 0.4,
0.3, 0.4, 1
), nrow = 3, byrow = TRUE)
result <- smm(mean, var, cor_mat)
print(result)
[Package PRA version 0.2.0 Index]