Create a Pharmpy model object from a NONMEM report file (.lst/.res)
create_model_from_output.RdFor the case where only a NONMEM report file is available and the .ext
file (from which pharmpy normally reads final estimates) is missing. Reads
the embedded control stream and applies the final parameter estimates parsed
from the report's FINAL PARAMETER ESTIMATE section.
Arguments
- output_file
path to a NONMEM report file (
.lst,.res, ...).- data
optional dataset (filename or
data.frame) passed tocreate_model_from_file().- save_as
optional path to write the resulting NONMEM model code to. Default
NULL(return the model object only).- verbose
verbose output. Default
TRUE.
Details
Internally the parsed estimates are written to a synthetic .ext file and
fed through the existing create_model_from_file() path, so pharmpy handles
the NONMEM-name to parameter-name mapping.
Precision: estimates recovered from a report file are rounded to ~3
significant figures (see parse_output()). Use an .ext file with
create_model_from_file() when full precision is required.