combGen: A function for generating outcome combinations for...

View source: R/BayesianPredictiveFutility.R

combGenR Documentation

A function for generating outcome combinations for calculations using analytic form

Description

A function for generating outcome combinations for calculations using analytic form

Usage

combGen(stages, currStage, sizes, sizesCum, reqCum, values)

Arguments

stages

total number of stages to generate combinations for

currStage

value for handling depth of recursion

sizes

a vector of sample sizes for the stages

sizesCum

a vector of cumulative sample sizes for the stages

reqCum

a vector with the required cumulative counts for successful trial outcome

values

a list for recursively passing on combinations vector for storing in global list


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