set_studyPlan: Title

Description Usage Arguments Value Examples

View source: R/set_studyPlan.R

Description

Title

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
set_studyPlan(
  recruitment,
  rec_time,
  study_end,
  lambdaC,
  theta,
  gamma,
  dist_surv,
  dist_censor,
  alpha = 0.05,
  beta = 0.2,
  alternative = "two-sided",
  ...
)

Arguments

lambdaC

a number defining the hazard rate of the control group.

theta

a number defining the hazard ratio. Alternatively lambdaT can be defined.

gamma

a number defining the hazard of the censor process.

dist_surv

a numeric defining the distribution of the survival process.

alternative
lambdaT

a number defining the hazard rate of the treatment group. Alternatively theta can be defined.

Value

a list of class studyPlan

Examples

1
2
3
4
5
6
7
8
set_studyPlan(recruitment=set_recruitment(c(2400,1200),1:20),
              rec_time = 10,
              study_end = 22,
              lambdaC = get_hazardRate(.3,24),
              theta = .7,
              gamma = get_hazardRate(.2,24),
              dist_surv = "exponential",
              dist_censor = "exponential",beta=.1)

Knusprikus/BSSRed documentation built on July 6, 2020, 11:02 p.m.