ComputePosteriorProbs.MAVTarget: ComputePosteriorProbs.MAVTarget

View source: R/ComputePosteriorProbs.R

ComputePosteriorProbs.MAVTargetR Documentation

ComputePosteriorProbs.MAVTarget

Description

Used in a trial with a Bayesian analysis and parameter of interest \theta, where the decisions are based one posterior probabilities Pr( \theta_T > MAV |data ). This function returns a list with dPrGrtMAV, dMAVCutoff and dTVCutoff. 0 <= dMAVCutoff and dTVCutoff <= 1

Usage

## S3 method for class 'MAVTarget'
ComputePosteriorProbs(
  cAnalysis,
  nISAAnalysisIndx,
  bIsFinalISAAnalysis,
  lSamples
)

Arguments

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. dTVCutoff

lSamples

List with vPostSamp that are samples of the posterior of \theta the parameter of interest.

cAnalysis$vMAVCutoff

A vector of cutoffs for the MAV at each analysis.

cAnalysis$vTVCutoff

A vector of cutoffs for the TV.

Value

List with three values dPrGrtMAV, dMAVCutoff and dTVCutoff

See Also

View Code on GitHub


kwathen/OCTOPUS documentation built on Oct. 24, 2024, 12:36 p.m.