Executes an NLME shotgun covariate search
shotgunSearch.RdExecutes an NLME shotgun covariate search
Usage
shotgunSearch(
model,
hostPlatform = NULL,
params,
covariateModel,
runInBackground = FALSE,
...
)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.- covariateModel
Covariate Effects Model providing the relationship between covariates and structural parameters to test (
covariateModel(model)).- runInBackground
Set to
TRUEto run in background and return prompt.- ...
Additional arguments for
hostParamsor 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 both thehostPlatformargument and the ellipses, values supplied tohostPlatformwill be overridden by additional arguments supplied via the ellipses e.g.,....
Value
if runInBackground = FALSE, a data frame is returned with
shotgun (all combinations given the covariate model) search results,
i.e. "Overall" comma separated file.
Otherwise the ShotgunNlmeJob class object is returned.
Examples
if (FALSE) { # \dontrun{
# Define the model
model <- pkmodel(numCompartments = 2,
data = pkData,
ID = "Subject",
Time = "Act_Time",
A1 = "Amount",
CObs = "Conc",
workingDir = tempdir())
# Add Gender covariate of type categorical
model <- addCovariate(model,
covariate = "Gender",
type = "Categorical",
effect = c("V2", "Cl2"),
levels = c(0, 1),
labels = c("Female", "Male"))
# Add Bodyweight covariate of type continuous
model <- addCovariate(model,
covariate = "BodyWeight",
type = "Continuous",
direction = "Backward",
center = "Mean",
effect = c("V", "Cl"))
# Define the host
host <- hostParams(parallelMethod = "MULTICORE",
hostName = "local",
numCores = 8,
sharedDirectory = tempdir())
# Define the engine parameters
params <- engineParams(model, fastOptimization = TRUE, numIterations = 7)
# Define covariate model
cp <- covariateModel(model)
# Perform shotgun search
OverallDF <- shotgunSearch(model = model,
hostPlatform = host,
params = params,
covariateModel = cp,
runInBackground = FALSE)
} # }