##### COPYRIGHT #############################################################################################################
#
# Copyright (C) 2018 JANSSEN RESEARCH & DEVELOPMENT, LLC
# This package is governed by the JRD OCTOPUS License, which is the
# GNU General Public License V3 with additional terms. The precise license terms are located in the files
# LICENSE and GPL.
#
#############################################################################################################################.
SetupTrialDesign <- function()
{
dConvWeeksToMonths <- 12/52
strBorrow <- "AllControls"
strModel <- "BayesianNormalAR1"
vPUpper <- c( 1.0, 1.0 )
vPLower <- c( 0.0, 0.0 )
dFinalPUpper <- 0.45
dFinalPLower <- 0.05
vQtyPats <- c( 30, 60 ) # Control, Treatment
vMinQtyPats <- c( 90, 90 )
vMinFUTime <- c( 24* dConvWeeksToMonths, 24* dConvWeeksToMonths)
dQtyMonthsBtwIA <- 0.0
########################################################################.
# ISA 1 Information ####
########################################################################.
cISA1Info <- Create1DosePh2AISA( vQtyPats = vQtyPats,
vTrtLab = c( 1, 2 ),
vPUpper = vPUpper,
vPLower = vPLower,
dFinalPUpper = dFinalPUpper,
dFinalPLower = dFinalPLower,
strBorrow = strBorrow,
strModel = strModel,
vMinQtyPats = vMinQtyPats,
vMinFUTime = vMinFUTime,
dQtyMonthsBtwIA = dQtyMonthsBtwIA )
cISA1Info <<- cISA1Info # make a global version to view
########################################################################.
# ISA 2 Information ####
########################################################################.
cISA2Info <- Create1DosePh2AISA( vQtyPats = vQtyPats,
vTrtLab = c( 1, 3 ),
vPUpper = vPUpper,
vPLower = vPLower,
dFinalPUpper = dFinalPUpper,
dFinalPLower = dFinalPLower,
strBorrow = strBorrow,
strModel = strModel,
vMinQtyPats = vMinQtyPats,
vMinFUTime = vMinFUTime,
dQtyMonthsBtwIA = dQtyMonthsBtwIA )
cTrialDesign <- NewTrialDesign( list( cISA1Info, cISA2Info ), strISARandomizer = "EqualRandomizer" )
return( cTrialDesign )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.