calcTNullFast(tab, phenotype, nsim, ngroups = 2, allphenotypes = FALSE)
ngroups
>= 2)
vector indicating the phenotypensim
rows and nrow(tab)
columns.
calcTStatFast
but calculates t-statistics over permuted
phenotypes. If allphenotypes == FALSE
, then any permutation
that has a permuted phenotype equal to the original phenotype will be
repermuted. For example, all the possible permutations for
phenotype == c(0,0,1,1)
are c(0,0,1,1)
,
c(0,1,0,1)
, c(1,0,1,0)
, c(1,0,0,1)
,
c(0,1,1,0)
, and c(1,1,0,0)
. If allphenotypes ==
FALSE
, then the results will not include values from the
c(0,0,1,1)
case.
The help file of calcTStatFast
has more details on the
different statistics one can calculate based on the
value specified for ngroups
.