Learn R Programming

tensr (version 1.0.2)

kendalltau: Kendall's tau measure of association.

Description

This function provides a Monte Carlo approximation to Kendall's tau measure of association.

Usage

kendalltau(x, y, nmc = 1e+05)

Value

A Monte Carlo approximation to Kendall's tau measure of association.

Arguments

x

a vector.

y

a vector.

nmc

an integer number of Monte Carlo simulations.

Author

Peter Hoff.

Examples

Run this code
mu <- rexp(30)
tensr:::kendalltau(rpois(30, mu), rpois(30, mu))

Run the code above in your browser using DataLab