cor0.test: Test of the correlation coefficient

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/cor0.test.R

Description

Test of the correlation coefficient between two quantitative variables

Usage

1
cor0.test(x, y, rho0 = 0, alternative = c("two.sided", "less", "greater"))

Arguments

x

numeric vector

y

numeric vector

rho0

numeric indicating the value of the correlation coefficient under the null. Default is rho0 = 0

alternative

Alternative hypothesis for the test. Either two sided ("two.sided"), one sided to the left ("less") or one sided to the right ("greater"). Default is "two.sided".

Value

Returns a list:

statistic

Value of the test statistic

p.value

p-value of the test

Author(s)

Lafaye de Micheaux Pierre <lafaye@unsw.edu.au>, Remy Drouilhet <Remy.Drouilhet@upmf-grenoble.fr>, Liquet Benoit <b.liquet@uq.edu.au>

References

Chapter 13 (Confidence Intervals and Hypothesis Testing) from the book: The R Software, Fundamentals of Programming and Statistical Analysis

See Also

cor.test

Examples

1
2
3
4

TRSbook documentation built on May 2, 2019, 2:45 a.m.

Related to cor0.test in TRSbook...