jh.tie: Extended jonckheere function that can handle data with ties.

Description Usage Arguments Details Value Examples

View source: R/jh_extend.R

Description

Extended jonckheere function that can handle data with ties.

Usage

1
jh.tie(x, gr)

Arguments

x

the multi-group data (vector)

gr

the group index for the data (numeric/factor)

Details

For Jonkheere-Terpstra test with ties W[ij]=\#(X[ik]<X[jl],k=1,2,...,n[i],l=1,2,...,n[j])+frac(1,2)\#(X[ik]=X[jl],k=1,2,...,n[i],l=1,2,...,n[j]) J=sum(W[ij],i<j) frac(J-E[H[0]](J),sqrt(var[H[0]](J))) E[H[0]](J)=frac(N^2-sum(n[i]^2,i==1,k),4)

Value

a list that contains the value of J statistics and p.value

Examples

1
2
3
4
5
6
## Not run: 
 data(m)
 attach(m)
 jh.tie(medical,gr)

## End(Not run)

XixuHu/SC19090 documentation built on Jan. 2, 2020, 8:40 p.m.