PsProg_normal: Probability of a successful program for multiarm programs...

View source: R/functions_multiarm_normal.R

PsProg_normalR Documentation

Probability of a successful program for multiarm programs with normally distributed outcomes

Description

Given we get the "go"-decision in phase II, this functions now calculates the probability that the results of the confirmatory trial (phase III) are significant, i.e. we have a statistically relevant positive effect of the treatment.

Usage

PsProg_normal(
  kappa,
  n2,
  alpha,
  beta,
  Delta1,
  Delta2,
  step1,
  step2,
  strategy,
  case
)

Arguments

kappa

threshold value for the go/no-go decision rule

n2

total sample size for phase II; must be even number

alpha

significance level

beta

1-beta power for calculation of sample size for phase III

Delta1

assumed true treatment effect for standardized difference in means

Delta2

assumed true treatment effect for standardized difference in means

step1

lower boundary for effect size

step2

upper boundary for effect size

strategy

choose Strategy: 1 ("only best promising"), 2 ("all promising") or 3 (both)

case

different cases: 1 ("nogo"), 21 (treatment 1 is promising, treatment 2 is not), 22 (treatment 2 is promising, treatment 1 is not), 31 (both treatments are promising, treatment 1 is better), 32 (both treatments are promising, treatment 2 is better)

Value

The function PsProg_normal() returns the probability of a successful program.

Examples

res <- PsProg_normal(kappa = 0.1 ,n2 = 50 ,alpha = 0.05, beta = 0.1,
                            Delta1 = 0.375, Delta2 = 0.625,  step1 = 0, step2 = 0.5,
                            strategy = 3, case = 31)

Sterniii3/drugdevelopR documentation built on Jan. 26, 2024, 6:17 a.m.