Executes an NLME Bootstrap
bootstrap.RdMethod to execute an NLME Bootstrap
Arguments
- model
PK/PD model class object.
- hostPlatform
Host definition for model execution. See
hostParams. Ifmissing, multicore local host with 4 threads is used.- params
Engine parameters. See
engineParams. Ifmissing, default parameters generated by engineParams(model) are used.- bootParams
Bootstrap parameters. See
BootstrapParams. Ifmissing, default parameters generated by BootstrapParams() are used.- runInBackground
Set to
TRUEto run in background and return prompt.- ...
Additional class initializer arguments for
BootstrapParamsorhostParams, or arguments available insideengineParamsfunctions. IfengineParamsarguments are supplied through bothparamsargument and additional argument (i.e., ellipsis), then the arguments inparamswill be ignored and only the additional arguments will be used with warning. IfhostParamsarguments are supplied through bothhostPlatformargument and additional argument, then its values will be overridden by additional arguments. In addition, ifBootstrapParamsarguments are supplied through bothbootParamsargument and additional argument, then its slots will be overridden by additional arguments.
Value
if runInBackground = FALSE, a list is returned with bootstrap results, i.e.
"BootOverall", "BootTheta", "BootOmega", "BootOmegaStderr", "BootVarCoVar" comma separated files.
Otherwise the BootNlmeJob class object is returned.
Examples
if (FALSE) { # \dontrun{
input_data <- pkData
model <-
pkmodel(
numCompartments = 2,
data = input_data,
ID = "Subject",
Time = "Act_Time",
A1 = "Amount",
CObs = "Conc",
workingDir = tempdir()
)
# multicore
multicoreHost <- hostParams(
sharedDirectory = tempdir(),
parallelMethod = "Multicore",
hostName = "local_multicore",
numCores = 4
)
bootstrapdf <- bootstrap(model,
hostPlatform = multicoreHost,
params = engineParams(model),
numReplicates = 5,
randomNumSeed = 1234,
runInBackground = FALSE
)
} # }