# NOT RUN {
# }
# NOT RUN {
# takes to much time for CRAN
## rank SetOfSchemes
setOfSchemesExample <- getExampleSetOfSchemes()
pkModelRange <- getExamplePkModelRange()
nSim <- 13
testDirectory1 <- file.path( tempdir() , "test1" )
dir.create( testDirectory1 )
rankObjectWithRange( object = setOfSchemesExample , pkModelRange , nSim = 13 ,
summaryFunctionOverScenarios = "max" ,
directory = testDirectory1 , varianceMeasure = "sd" , objective = getExampleObjective()
, nCores = 1 )
## rank set of timePoints
timePoints <- getExampleSetOfTimePoints( 0:10 )
testDirectory2 <- file.path( tempdir() , "test2" )
dir.create( testDirectory2 )
rankObjectWithRange( object = timePoints , pkModelRange , nSim = 13 ,
summaryFunctionOverScenarios = "max" , directory = testDirectory2 , nGrid = 20 ,
nSamplesAvCurve = 25 , nSubjectsPerScheme = 3
, nCores = 1 )
# remark : use larger number of simulation in realistic context
## clean up directories
unlink( testDirectory1 , recursive = TRUE )
unlink( testDirectory2 , recursive = TRUE )
# }
Run the code above in your browser using DataLab