Learn R Programming

fifer (version 1.0)

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)

Arguments

n
The sample size.
p
the probability. Defaults to .025.
r
The observed r value

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