powered by
totalCov(variables, div_by_n = FALSE)
div_by_n=TRUE
totalSS
betweenCov
withinCov
# load iris dataset data(iris) # total covariance matrix (dividing by n-1) totalCov(iris[,1:4]) # total covariance matrix (dividing by n) totalCov(iris[,1:4], div_by_n=TRUE)
Run the code above in your browser using DataLab