methodRuleTREND1 {perm}R Documentation

Rule for determining method for permTREND

Description

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

Usage

methodRuleTREND1(x, y, exact, Nbound = c(20))

Arguments

x

vector of response scores

y

group membership vector

exact

logical, TRUE=exact method chosen, FALSE=pclt

Nbound

gives 'pclt' if length(x) > Nbound

Details

This function determines which of two methods will be used in permTREND; see that help for description of methods.

When exact=FALSE then returns 'pclt'. When exact=TRUE then returns 'exact.mc'. When exact=NULL then returns either 'exact.mc' if length(x) is less than or equal to Nbound, otherwise returns 'pclt'.

Value

a character vector with one of the following values: "pclt","exact.mc"

See Also

permKS


[Package perm version 1.0-0.4 Index]