This is the default function which determines which method to use in choplump
.
methodRule1(W,Z, exact, parms)
a character vector with one of the following values: "approx","exact","exactMC"
numeric vector of response scores, usually many zeros and the rest positive
group membership vector, values all 0 (control) or 1 (treated)
logical, TRUE=exact method, FALSE=approximate method, NULL=see below
numeric value of maximum number of calculations of test statistic, if number of calculations greater than parms then use Monte Carlo for exact method
This function determines which of several methods will be used in choplump
;
see that help for description of methods.
When exact=FALSE then returns 'approx'. When exact=TRUE then returns either 'exact' if the
number of calculations of the test statistic is less than or equal to parms
or 'exactMC' otherwise.
When exact=NULL then returns either 'exact' if the number of calculations of the test statistic is less than
or equal to parms
or or 'approx' otherwise.
choplump