Arguments for VPC runs
NlmeVpcParams-class.RdClass initializer for arguments of visual predictive check (VPC) runs
Arguments
- numReplicates
Integer; Number of replicates to simulate the model
- seed
Integer; Random number generator seed
- predCorrection
Character; Type of correction to use when calculating a prediction-corrected observation. Options are
"none", "proportional", "additive". This option is ignored for discontinuous observed variables (categorical, count, and time-to-event).- predVarCorr
Logical; Set to
TRUEto use Prediction Variance Correction. Only applicable to the case wherepredCorrectionis set to either"proportional"or"additive".- outputPRED
Logical; Set to
TRUEto include population prediction (PRED) results for continuous observed variables in output.- stratifyColumns
Character or character vector; Names of categorical covariates (up to 3) used to stratify modeling simulation results.
- observationVars
NlmeObservationVar class instance or list of these instances
- simulationTables
Optional list of simulation tables.
NlmeSimTableDefclass instance or a list of such instances. Could be generated bytableParamswrapper function or byNlmeSimTableDefclass instance initializing directly.
Examples
if (FALSE) { # \dontrun{
model <- pkmodel(
parameterization = "Clearance",
numCompartments = 2,
data = pkData,
ID = "Subject",
Time = "Act_Time",
A1 = "Amount",
CObs = "Conc",
workingDir = tempdir()
)
# Define the host
host <- hostParams(parallelMethod = "NONE",
hostName = "local",
numCores = 1,
sharedDirectory = tempdir())
job <- fitmodel(model,
hostPlatform = host)
# View estimation results
print(job)
finalModelVPC <- copyModel(model,
acceptAllEffects = TRUE,
modelName = "model_VPC",
workingDir = tempdir())
# View the model
print(finalModelVPC)
# Set up VPC arguments to have PRED outputted to simulation output dataset "predout.csv"
vpcSetup <- NlmeVpcParams(outputPRED = TRUE)
# Run VPC using the default host, default values for the relevant NLME engine arguments
finalVPCJob <-
vpcmodel(model = finalModelVPC, vpcParams = vpcSetup, )
} # }