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

Test of the correlation coefficient between two quantitative variables

1 |

`x` |
numeric vector |

`y` |
numeric vector |

`rho0` |
numeric indicating the value of the correlation
coefficient under the null. Default is |

`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". |

Returns a list:

`statistic` |
Value of the test statistic |

`p.value` |
p-value of the test |

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

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

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.