Create a Pharmpy model object from a model file and dataset (optional)
create_model_from_file.RdCreate a Pharmpy model object from a model file and dataset (optional)
Usage
create_model_from_file(
model_file,
ext_file = NULL,
data = NULL,
data_dir = NULL,
verbose = TRUE
)Arguments
- model_file
the model file (.mod) to read.
- ext_file
optional path to a .ext file containing final parameter estimates that will be used to update the initial estimates in the model.
- data
the filename of the dataset (or an actual data.frame)
- data_dir
directory a relative
$DATApath in the model is relative to. Defaults to the foldermodel_fileis in, as for NONMEM. Stored on the returned model as attributedata_dir, whichrun_nlme()uses to point$DATAat the dataset's absolute path.- verbose
verbose output