Learn R Programming

⚠️There's a newer version (1.0.1) of this package.Take me there.

kendallknight

About

tldr; This package implements a different algorithm from the one implemented in base R, and it reduces the complexity of the Kendall’s correlation coefficient from O(n^2) to O(n log n) resulting in a runtime of nano seconds or minutes instead of minutes or hours. This package is written in C++ and uses cpp11 to export the functions to R. See the vignette for the mathematical details.

If this software is useful to you, please consider donating on Buy Me A Coffee. All donations will be used to continue improving kendallknight.

Installation

You can install the released version of kendallknight from CRAN with:

install.packages("kendallknight")

You can install the development version of kendallknight like so:

remotes::install_github("pachadotdev/kendallknight")

Examples

See the documentation and vignette: https://pacha.dev/kendallknight/.

Code of Conduct

Please note that the kendallknight project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('kendallknight')

Monthly Downloads

692

Version

0.6.0

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Mauricio Vargas

Last Published

February 20th, 2025

Functions in kendallknight (0.6.0)

kendall_cor_test

Kendall Correlation Test
cigarettes

Life expectancy and cigarettes per day
kendallknight-package

kendallknight: Efficient Implementation of Kendall's Correlation Coefficient Computation
kendall_cor

Kendall Correlation