Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

methodRuleTREND1

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


perm

Exact or Asymptotic permutation tests

v1.0-0.0
GPL
Authors
Michael Fay
Initial release
2010-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.