nNeededFromTotal: Calculates number of positive outcomes from total number of...

View source: R/BayesianPredictiveFutility.R

nNeededFromTotalR Documentation

Calculates number of positive outcomes from total number of patients that is required for the full study to be successful

Description

Calculates number of positive outcomes from total number of patients that is required for the full study to be successful

Usage

nNeededFromTotal(
  ns,
  p.target,
  beta.a,
  beta.b,
  cutoff.n.for.greater.p0,
  increase
)

Arguments

ns

array of patients per stage

p.target

target probability for successful study

beta.a

beta a

beta.b

beta b

cutoff.n.for.greater.p0

cutoff.n.for.greater.p0

increase

boolean for specifying if study evaluation is aimed capture significant increase or decrease. TRUE = increase FALSE = reduce

Value

numeric value of outcomes that needs to be exceded for positive outcome of study


dungtsa/BayesianPredictiveFutility documentation built on April 10, 2022, 7:48 p.m.