cat.stat
chisq.stat(data, cl, approx = NULL, B = 100, n.split = 1, check.for.NN = FALSE, lev = NULL, B.more = 0.1, B.max = 50000, n.subset = 10, rand = NA)
data
as a list consisting
of matrices, where each matrix represents one group and summarizes
how many observations in this group show which level at which variable. These matrices can
be generated using the function rowTables
from the package scrime. For details on
how to specify this list, see the examples section on this man page, and the help for
rowChisqMultiClass
in the package scrime.ncol(data)
indicating to which class
a sample belongs. Must consist of the integers between 1 and $c$, where
$c$ is the number of different groups. Needs only to be specified if data
is a matrix or a data frame.data
is a matrix or data frame. If not specified,
approx = FALSE
is used, and the null distribution is estimated by employing a
permutation method.approx = TRUE
and data
is a matrix or data frame.
By default, the test scores of all variables are calculated simultaneously.
If the number of variables or observations is large, setting n.split
to a
larger value than 1 can help to avoid memory problems.TRUE
, it will be checked if any of the genotypes
is equal to "NN". Can be very time-consuming when the data set is high-dimensional.data
is a matrix or a data frame.
Must only be specified if the variables are not coded by the
integers between 1 and the number of levels. Can also be a list. In this case,
each element of this list must be a numeric or character vector specifying the codings,
where all elements must have the same length.B.more
)*B
, full permutation will be done.
Otherwise, B
permutations are used.B.max
, B
randomly selected permutations will be used
in the computation of the null distribution. Otherwise, B
random draws
of the group labels are used.NA
, the random number generator
will be set into a reproducible state.sam
.
Tusher, V.G., Tibshirani, R., and Chu, G. (2001). Significance analysis of microarrays applied to the ionizing radiation response. PNAS, 98, 5116-5121.
SAM-class
,sam
, chisq.ebam
, trend.stat