methodRule1 {choplump}R Documentation

Rule for determining method for choplump function

Description

This is the default function which determines which method to use in choplump.

Usage

methodRule1(W,Z, exact, parms)

Arguments

W

numeric vector of response scores, usually many zeros and the rest positive

Z

group membership vector, values all 0 (control) or 1 (treated)

exact

logical, TRUE=exact method, FALSE=approximate method, NULL=see below

parms

numeric value of maximum number of calculations of test statistic, if number of calculations greater than parms then use Monte Carlo for exact method

Details

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.

Value

a character vector with one of the following values: "approx","exact","exactMC"

See Also

choplump


[Package choplump version 1.0-0.4 Index]