Used in a trial with a Bayesian analysis and parameter of interest \(\theta\), where the decisions are based one posterior probabilities Pr( \(\theta_P\) - \(\theta_T\) > MAV |data ). This function returns a list with dPrGrtMAV, dMAVCutoff and dTVCutoff. 0 <= dMAVCutoff and dTVCutoff <= 1
# S3 method for class 'MAVOnly'
ComputePosteriorProbs(
cAnalysis,
nISAAnalysisIndx,
bIsFinalISAAnalysis,
lSamples
)A the index of the analysis
TRUE or FALSE to indicate if this is the final analysis. Typically, used in a Bayesian design such that the final analysis can have different cutoff values. dTVCutoff
List with two vectors, vPostSampPlac and vPostSampTrt, that are samples of the posterior of \(\theta\) for the placebo and treatment, respectively.
A vector of cutoffs for the MAV at each analysis.
A vector of cutoffs for the TV.
List with three values dPrGrtMAV, dMAVCutoff and dTVCutoff