cor_CI_from_SE: Compute correlation confidence intervals from correlations...

cor_CI_from_SER Documentation

Compute correlation confidence intervals from correlations and standard errors

Description

Compute correlation confidence intervals from correlations and standard errors

Usage

cor_CI_from_SE(cor, se, ci = 0.95, winsorise = T)

Arguments

cor

A correlation value or matrix

se

A standard error value or matrix

ci

The desired confidence level

winsorise

Keep values within -1 to 1

Value

If you entered a single value, you get 2 values back: lower and upper confidence numbers. If you entered matrices, you get 2 matrices back in a list.

Examples

#simple results
cor_CI_from_SE(.50, .10)
cor_CI_from_SE(.50, .10, ci = .99)
#matrices
iris_res = suppressWarnings(weights::wtd.cor(iris[-5]))
cor_CI_from_SE(iris_res$correlation, iris_res$std.err)

Deleetdk/kirkegaard documentation built on April 27, 2024, 3:26 p.m.