Run a simulation based on supplied parameters estimates, and combine into proper format for VPC
Source:R/create_vpc_data.R
create_vpc_data.RdRun a simulation based on supplied parameters estimates, and combine into proper format for VPC
Usage
create_vpc_data(
fit = NULL,
model = NULL,
parameters = NULL,
keep_columns = c(),
n = 100,
verbose = FALSE,
id = NULL,
use_pharmpy = TRUE
)Arguments
- fit
fit object from
pharmr::run_modelfit(). Optional, can supply amodelandparametersargument- model
pharmpy model object. Optional, can also only supply just a
fitobject- parameters
list of parameter estimates, e.g.
list(CL = 5, V = 50). Optional, can also supply afitobject.- keep_columns
character vector of column names in original dataset to keep in the output dataset
- n
number of simulation iterations to generate
- verbose
verbose output?