Learn R Programming

psychometric (version 2.4)

r.nil: Nil hypothesis for a correlation

Description

Performs a two-tailed t-test of the H0 that r = 0

Usage

r.nil(r, n)

Value

Returns a table with 4 elements

H0:rNot0

correlation to be tested

t

t value for the H0

df

degrees of freedom

p

p value

Arguments

r

Correlation coefficient

n

Sample Size

Author

Thomas D. Fletcher t.d.fletcher05@gmail.com

References

Cohen, J., Cohen, P., West, S. G., & Aiken, L. S. (2003). Applied multiple regression/correlation analysis for the behavioral sciences (3rd ed.). Mahwah, NJ: Lawrence Erlbaum.

See Also

rdif.nul, CIrdif

Examples

Run this code
# From ch. 2 in Cohen et al (2003)
r.nil(.657, 15)

Run the code above in your browser using DataLab