jonckheere {npsm}R Documentation

Jonckheere's Test for Ordered Alternatives

Description

Computes Jonckheere's Test for Ordered Alternatives; see Section 5.6 of Kloke and McKean (2014)/Section 5.7 of Kloke and McKean (2024).

Usage

jonckheere(y, groups)

Arguments

y

vector of responses

groups

vector of associated groups (levels)

Details

Computes Jonckheere's Test for Ordered Alternatives. The main source was downloaded from the site:

smtp.biostat.wustl.edu/sympa/biostat/arc/s-news/2000-10/msg00126.html

Value

Jonckheere

test statistic

ExpJ

null expectation

VarJ

null variance

p

p-value

Author(s)

John Kloke, Joseph McKean

References

Kloke, J. and McKean, J.W. (2014), Nonparametric statistcal methods using R, Boca Raton, FL: Chapman-Hall. Kloke, J. and McKean, J.W. (2024), Nonparametric statistcal methods using R, Second Edition, Boca Raton, FL: Chapman-Hall.

smtp.biostat.wustl.edu/sympa/biostat/arc/s-news/2000-10/msg00126.html

Examples

 r<-rnorm(30)
 gp<-c(rep(1,10),rep(2,10),rep(3,10))
jonckheere(r,gp)


[Package npsm version 2.0.0 Index]