prob_ddc.def1: and conditional probabilities of claiming consistency of...

Description Usage Arguments Value Examples

View source: R/prob_ddc.def1.R

Description

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

Usage

1
prob_ddc.def1(r0, s, E0, u, f, pai, alpha)

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

pai

The given parameter in Definition 1

alpha

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

Value

A list

Examples

1
2
3
4
5
alpha=0.05
r0=log(0.7)
E0=Eventnum(r=r0, alpha=0.05, beta=0.2)
AP1 <- prob_ddc.def1(r0=r0, s=3, E0=E0, u=c(1,1,1), f=c(1/3,1/3,1/3),
pai=1/3, alpha=alpha)

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