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

methodRuleIC1

Rule for determining method for ictest


Description

This is the default function which determines which permutation method (e.g., ‘pclt’ or ‘exact.network’) to use in ictest.

Usage

methodRuleIC1(x, group, exact, Nbound = c(20))

Arguments

x

vector of response scores

group

group membership vector

exact

logical, TRUE=exact method chosen, FALSE=pclt

Nbound

bound, if n>Nbound then method='pclt' otherwise either 'exact.mc' (for k-sample or trend) or 'exact.network' (for two-sample)

Details

This function determines which of several methods will be used in ictest, see permTS for description of methods.

When exact=FALSE then returns 'pclt'. When exact=TRUE then returns either 'exact.network' if the length(cc)<=Nbound and it is a two-sample test or 'exact.mc' otherwise. When exact=NULL and the length(cc)<=Nbound, then returns either 'exact.network' (for two-sample) or 'exact.mc' (for k-sample and trend). When exact=NULL and length(cc)>Nbound returns 'pclt'.

Value

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

See Also


interval

Weighted Logrank Tests and NPMLE for Interval Censored Data

v1.1-0.7
GPL (>= 2)
Authors
Michael P. Fay
Initial release
2020-09-23

We don't support your browser anymore

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