pwr.logRank: Sample size calculations for the log-rank test

Description Usage Arguments Details Value Note Examples

View source: R/pwr.R

Description

Calculates the required sample size for a log-rank test using Freedman's method.

Usage

1
2
3
pwr.logRank(S.trt, S.ctrl, sig.level = 0.05, power = 0.8,
  alternative = c("two.sided", "less", "greater"),
  method = c("Freedman"))

Arguments

S.trt

Numeric specifying the hazard rate for the treatment group.

S.ctrl

Numeric specifying the hazard rate for the control group.

sig.level

Significance level (Type I error probability).

power

Power of test (1 minus Type II error probability).

alternative

Character string specifying the form of the alternative hypothesis. Must be one of "two.sided" (default), "greater" or "less".

method

Character string specifying the method to use in calculating the required sample size. (Currently ignored.)

Details

PASS Sample Size Software, Chapter 700: The power calculations used here assume an underlying exponential distribution. However, we are rarely in a position to assume exponential survival times in an actual clinical trial. How do we justify the exponential survival time assumption? First, the logrank test and the test derived using the exponential distribution have nearly the same power when the data are in fact exponentially distributed. Second, under the proportional hazards model (which is assumed by the logrank test), the survival distribution can be transformed to be exponential and the logrank test remains the same under monotonic transformations.

Value

An estimate of the required sample size.

Note

Returns Inf when S.trt == S.ctrl.

Examples

1
pwr.logRank(0.3, 0.4)

bgreenwell/bmisc documentation built on Sept. 24, 2019, 11:09 a.m.