Description Usage Arguments Details Value Author(s) Examples

A hypothesis test for the correlation between the variable of interest and time

1 | ```
TrendTest(x, method = "kendall")
``` |

`x` |
a numeric vector or a data.frame with dates in the first column and chronologically ordered variable in the second. |

`method` |
a choice of test method. Choices are "pearson", "spearman", and "kendall" |

The test can be performed on a numeric vector, or a data.frame with dates in the first column and the associated variable of interest in the second. A choice can be made between a Pearson's, Spearman's Rho or Kendall's tau test. The Spearman and Kendall are based on ranks and will therefore have the same results whether dates are included or not. The default is kendall (note: for very long time series the kendall method takes a touch longer).

A data.frame with columns and associated values: P_value, correlation coefficient, and method specific statistic.

Anthony Hammond

1 2 3 4 5 6 |

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.