Description Usage Arguments Value Examples
covariance
computes the covariance matrix and vectorize it.
1 | covariance(population, variables)
|
population |
tbl with grouping (metadata) and observation variables. |
variables |
character vector specifying observation variables. |
data frame of 1 row comprising vectorized covariance matrix.
1 2 3 4 5 6 7 8 9 | population <- tibble::tibble(
x = rnorm(30),
y = rnorm(30),
z = rnorm(30)
)
variables <- c("x", "y")
covariance(population, variables)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.