Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pHoeff

Hoeffding's D


Description

Function to approximate the distribution of Hoeffding's D statistic using a Monte Carlo Sample under the null hypothesis. This code follows section 8.6 of Hollander, Wolfe & Chicken, Nonparametric Statistical Methods, 3e. This calls HoeffD, a small bit of code that produces the value of D without any inference. It is intended for small sample sizes n only. For large n, use the asymptotic equivalence of D to the Blum-Kliefer-Rosenblatt statistic in the R package "Hmisc", command "hoeffd".

Usage

pHoeff(n=5, reps=10000, r=4)

Arguments

n

the sample size

reps

the number of Monte Carlo runs to produce

r

the number of digits for rounding the results

Value

Returns a matrix containing the Monte Carlo distribution of the D statistic.

Author(s)

Eric Chicken

See Also

Also see the Hmisc package.

Examples

pHoeff(n=5, reps=10000, r=4)
pHoeff(n=10, reps=1000, r=5)

NSM3

Functions and Datasets to Accompany Hollander, Wolfe, and Chicken - Nonparametric Statistical Methods, Third Edition

v1.16
GPL-2
Authors
Grant Schneider, Eric Chicken, Rachel Becvarik
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.