createPermGS: createPermGS

Description Usage Arguments Value Examples

View source: R/permLR.R

Description

Create permGS object representing a permutational group-sequential trial.

Usage

1
2
3
4
createPermGS(B = 1000, restricted = TRUE, method = "IPZ", pool = TRUE,
  type = c("logrank", "Gehan-Breslow", "Tarone-Ware", "Prentice",
  "Prentice-Marek", "Andersen-Borgan-Gill-Keiding", "Fleming-Harrington",
  "Self"), imputeData = NULL, permuteData = NULL)

Arguments

B

number of random permutations

restricted

if TRUE only permute within strata

method

imputation/permuation method IPZ, IPT, Heinze or none (default: IPZ)

pool

if TRUE impute event times from Kaplan-Meier estimator calculated from pooled data

type

logrank weights to be used with coin::logrank_trafo

imputeData

user-supplied imputation function (ignored if method is given)

permuteData

user-supplied permutation function (ignore if method is given)

Value

object of class permGS

Examples

1
2
3
4
5
6
## standard permutation test (no imputation, free permutations)
x <- createPermGS(1000, FALSE, "none")
summary(x)
## imputation using IPT method, restricted permutations
y <- createPermGS(1000, TRUE, "IPT")
summary(y)

mbrueckner/permGS documentation built on Aug. 7, 2017, 3:22 p.m.