Usage
mtest(c, ntrials = 1e+05, statName = "LLR", histobins = 0,
histobounds = c(0, 0), showCurve = T, safeSecs = 100, detail = 2)
Arguments
c
A matrix containing the genotype counts. It should be a square matrix, but only the lower-left half is used.
ntrials
the number of random trials to perform
statName
can be LLR, Prob, U, or Chisq depending on which one is to be ploted. Note that P values for all four are computed regardless of which one is specified with this parameter.
histobins
If 0 no histogram is plotted. If 1 or TRUE
a histogram with 500 bins is plotted. If set to a number greater than 1, a histogram with histobins
is plotted.
histobounds
A vector containing the left and right boundaries for the histogram's x axis. If you leave this as the default, c(0,0)
, then mtest
will compute reasonable bounds to include most of the distribution.
showCurve
whether to show a blue curve indicating the asymptotic (chi squared) distribution. This only works for LLR
and Chisq
safeSecs
After this many seconds the calculation will be aborted. This is a safety valve to prevent attempts to compute impossibly large sets of tables.
detail
Determines how much detail is printed. If it is set to 0, nothing is printed (useful if you use mtest
programmatically.).