Learn R Programming

configural (version 0.1.5)

cor_covariance: Calculate the asymptotic sampling covariance matrix for the unique elements of a correlation matrix

Description

Calculate the asymptotic sampling covariance matrix for the unique elements of a correlation matrix

Usage

cor_covariance(r, n)

Value

The asymptotic sampling covariance matrix

Arguments

r

A correlation matrix

n

The sample size

Author

Based on an internal function from the fungible package by Niels Waller

References

Nel, D. G. (1985). A matrix derivation of the asymptotic covariance matrix of sample correlation coefficients. Linear Algebra and Its Applications, 67, 137–145. tools:::Rd_expr_doi("10.1016/0024-3795(85)90191-0")

Examples

Run this code
cor_covariance(matrix(c(1, .2, .3, .2, 1, .3, .3, .3, 1), ncol = 3), 100)

Run the code above in your browser using DataLab