HoeffD: Function to compute Hoeffding's D statistic for small sample...

Description Usage Arguments Note Author(s) Examples

Description

This will calculate Hoeffding's D statistic following section 8.6 of Hollander, Wolfe & Chicken, Nonparametric Statistical Methods, 3e. Uses the correction for ties given at (8.92).

Usage

1

Arguments

x

first data vector

y

second data vector

example

if true, analyzes the data from Example 8.6

Note

This function 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".

Author(s)

Eric Chicken

Examples

1
2
##Example 8.6 Hollander-Wolfe-Chicken##
HoeffD(example=TRUE)

Example output

Loading required package: combinat

Attaching package: 'combinat'

The following object is masked from 'package:utils':

    combn

Loading required package: MASS
Loading required package: partitions
Loading required package: survival
fANCOVA 0.5-1 loaded
[1] 0.006473214

NSM3 documentation built on April 6, 2021, 5:05 p.m.

Related to HoeffD in NSM3...