onePermuteStat: Test statistic in one permutation

Description Usage Arguments Value See Also

Description

Helper function for getPermutePval().

Usage

1
onePermuteStat(i, Z, n1, n2, testFunction, seeds = NULL)

Arguments

i

the i-th permutation, in the range of 1, ..., npermute.

Z

(n1+n2)-by-p matrix, containing the pooled samples from two populations. Columns are features.

n1

the first n1 rows in Z represent the first population

n2

the (n1+1):(n1+n2) rows in Z represent the second population

testFunction

a function that takes in two arguments, X and Y, and returns a list including the field test.stat for test statistic

seeds

a numeric vector with length npermute, where seeds[i] specifies the seeding for the i-th permutation. Set to NULL if do not want to specify.

Value

Return the test statistic in the i-th permutation.

See Also

getPermutePval().


lingxuez/sLED documentation built on May 7, 2019, 2:55 a.m.