prob.def4: conditional probabilities of claiming consistency of...

Description Usage Arguments Value Examples

View source: R/prob.def4.R

Description

conditional probabilities of claiming consistency of treatments effects in an MRCT with a survival endpoint by Definition 4.

Usage

1
2
prob.def4(r0, alpha, s, E0, u, f, eps = 0.1, n = 1e+05, lamda,
  lamda_cen, L)

Arguments

r0

True overall log hazard ratio

alpha

The risk of rejecting the null hypothesis H0:r0>=0 when it is really true

s

Number of regions participating in the MRCT

E0

Event number of all regions with two groups combined

u

A vector presents ratios of true regional log hazard ratios to true overall log hazard ratio r=u*r0

f

A Vector presents proportions of total event number assigned to each region

eps

Significance level of not rejecting H0 in Definition 4

n

Simulation times

lamda

The event hazard rate for placebo

lamda_cen

The discontinuation hazard rate

L

The whole study duration of fixed study duration design

Value

A list

Examples

1
2
3
4
5
6
alpha=0.05
r0=log(0.7)
E0=Eventnum(r=r0, alpha=0.05, beta=0.2)
set.seed(123)
AP4 <- prob.def4(r0=r0, alpha=alpha, s=3, E0=E0, u=c(1,1,1), f=c(1/3,1/3,1/3),
eps=0.1, n=1000, lamda=1, lamda_cen=1, L=2)

carolinewei/apsurvival documentation built on Nov. 4, 2019, 8:44 a.m.