RunTrialAnalysis: RunTrialAnalysis

View source: R/RunTrialAnalysis.R

RunTrialAnalysisR Documentation

RunTrialAnalysis

Description

RunTrialAnalysis is a generic method to execute the trial level analysis, eg execute all ISA analysis. Any implementation of RunTrialAnalysis must increment vISAAnalysisIndx if an analysis is run for an ISA

RunTrialAnalysis is a generic method to execute the trial analysis. Any implementation of RunTrialAnalysis must increment vISAAnalysisIndx if an analysis is run for an ISA. Trial level analysis go through the following steps: 1. CreateDataSetForAnalysis - creates the data set for analysis for all ISAs will go through and call ProcessData based on the specific class of the outcome 2. Loop through each ISA and build the dataset for analysis for the specific ISA if it is borrowing. The borrowing is done via the SubsetData call and it will depend on the specific class of cISADesigns[[i]]$cISAAnalysis. The available options are AllControls or NoBorrowing but since SubsetData is an S3 generic new functions can be added. 3. Runs the analysis for each ISA via a call to RunISAAnalysis

Because the decision is tied to the analysis, each ISA analysis should contain the elements nGo, nNoGo, nPause as part of the list returned.

Usage

RunTrialAnalysis(
  cISADesigns,
  cEnrolledPats,
  vISAStatus,
  dCurrentTime,
  vRunISAAnalysis,
  vISAAnalysisIndx,
  vIsFinalISAAnalysis,
  cRandomizer
)

## Default S3 method:
RunTrialAnalysis(
  cISADesigns,
  cEnrolledPats,
  vISAStatus,
  dCurrentTime,
  vRunISAAnalysis,
  vISAAnalysisIndx,
  vIsFinalISAAnalysis,
  cRandomizer
)

See Also

View Code on GitHub

View Code on GitHub


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