Learn R Programming

vcmeta (version 1.5.0)

se.cor: Computes the standard error for a Pearson or partial correlation

Description

Computes the standard error of a Pearson or partial correlation using the estimated correlation, sample size, and number of control variables. The correlation, along with the standard error output from this function, can be used as input in the meta.ave.cor.gen function in applications where a combination of different types of compatible correlations are used in the meta-analysis.

Usage

se.cor(cor, s, n)

Value

Returns a one-row matrix:

  • Estimate - Pearson or partial correlation (from input)

  • SE - standard error

Arguments

cor

estimated Pearson or partial correlation

s

number of control variables (set to 0 for Pearson)

n

sample size

References

Bonett2008avcmeta

Examples

Run this code
se.cor(.40, 0, 55)
#' # Should return: 
#               Estimate       SE
# Correlation:       0.4 0.116487


Run the code above in your browser using DataLab