Learn R Programming

fifer (version 1.1)

r.crit: Compute critical r or p.

Description

Compute the critical r value, or return the p value of an r, assuming a given number of degrees of freedom.

Usage

r.crit(n, r = NULL, p = 0.025, two.tailed = T)

Arguments

n
The sample size.
r
The observed r value
p
the probability. Defaults to .025.
two.tailed
Should the probability be cut in half?

Value

the critical r value or the observed p value for a given r

Examples

Run this code
r.crit(n=100, p=.025)
r.crit(n=20, r=.6, p=.05)

Run the code above in your browser using DataLab