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

Description Usage Arguments Value Examples

View source: R/prob.def2.R

Description

conditional probabilities of claiming consistency of treatments effects in an MRCT with a survival endpoint by Definition 2. It is used in the article and other functions.

Usage

1
prob.def2(r0, s, E0, u, f, bound, n = 1e+05, lamda, lamda_cen, L)

Arguments

r0

True overall log hazard ratio

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

bound

The given parameter in Definition 2

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
r0=log(0.7)
E0=Eventnum(r=r0, alpha=0.05, beta=0.2)
set.seed(123)
AP2 <- prob.def2(r0=r0, s=3, E0=E0, u=c(1,1,1), f=c(1/3,1/3,1/3),
bound=0.1, n=1000, lamda=1, lamda_cen=1, L=2)

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