read_extfile | R Documentation |
Reads .ext files generated by NONMEM
read_extfile(
run = NA_real_,
project = getwd(),
file = paste0(run, ".ext"),
path = NULL,
read_fun = c("data.table", "read.table"),
quiet
)
run |
run a run number or run identifier |
project |
project the NONMEM project directory |
file |
file the 'ext' file name |
path |
path full path and file name for 'ext' file |
read_fun |
read_fun function to read the 'ext' file |
quiet |
Logical, if |
A list with param, omega, and sigma in a format ready to be used.
This function is based on read_nmext from mrgsolve, Original Author: Kyle T Baron. This function has some changes to the original code: Addition of param, "quiet", (option of pmx_msg function, from xpose package) (Line: 27) The code was slightly adjusted to check for multiple tables and also extract SE (ITERATION == 1000000001) (Line: 44-58, Line: 86-96, respectively) The output was also slightly adjusted to fit ggPMX output (df and df2) (Line: 105,106) as_bmat was replaced by bmat_like to create the diagonal matrix (Line 116:142)
#project <- system.file("nonmem", package = "mrgsolve")
#est <- read_nmext(1005, project = project)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.