View source: R/ComputePosteriorProbs.R
ComputePosteriorProbs.default | R Documentation |
Used in a trial with a Bayesian analysis and parameter of interest \theta
, where
the decisions are based two posterior probabilities Pr( \theta
> MAV |data ) > vMAVCutoff
and Pr( \theta
> TV | data ) > vTVCutoff.
This function returns a list with dMAVCutoff and dTVCutoff. 0 <= dMAVCutoff and dTVCutoff <= 1
## Default S3 method:
ComputePosteriorProbs(
cAnalysis,
nISAAnalysisIndx,
bIsFinalISAAnalysis,
lSamples
)
nISAAnalysisIndx |
A the index of the analysis |
bIsFinalISAAnalysis |
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. |
lSamples |
List with two vectors, vPostSampPlac and vPostSampTrt, that are samples of the posterior of
|
cAnalysis$vMAVCutoff |
A vector of cutoffs for the MAV at each analysis. |
cAnalysis$vTVCutoff |
A vector of cutoffs for the TV. |
List with two valued dMAVCutoff and dTVCutoff
List with four values dPrGrtMAV, dPrGrtTV, dMAVCutoff and dTVCutoff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.