cor_covariance | R Documentation |
Calculate the asymptotic sampling covariance matrix for the unique elements of a correlation matrix
cor_covariance(r, n)
r |
A correlation matrix |
n |
The sample size |
The asymptotic sampling covariance matrix
Based on an internal function from the fungible package by Niels Waller
Nel, D. G. (1985). A matrix derivation of the asymptotic covariance matrix of sample correlation coefficients. Linear Algebra and Its Applications, 67, 137–145. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/0024-3795(85)90191-0")}
cor_covariance(matrix(c(1, .2, .3, .2, 1, .3, .3, .3, 1), ncol = 3), 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.