View source: R/nonmem_reader.R
pmx_nm | R Documentation |
Creates pmx controller from NONMEM model outputs
pmx_nm(
file = NULL,
directory = ".",
runno = NULL,
ext = ".lst",
table_suffix = "",
sim_suffix = "sim",
simfile = NULL,
prefix = "run",
table_names = c("sdtab", "mutab", "patab", "catab", "cotab", "mytab", "extra", "xptab",
"cwtab"),
dvid = "DVID",
pred = "PRED",
time = "TIME",
dv = "DV",
conts,
cats,
npde,
iwres,
ipred,
endpoint,
strats = "",
settings = pmx_settings(),
vpc = TRUE,
bloq = NULL,
obs = FALSE,
quiet = FALSE
)
file |
A character vector of path to the files or a |
directory |
directory of the model files. |
runno |
run number which is used for generating the model file name, or used for alternative import of NONMEM-output tables. |
ext |
Extension to be used to generate model file name. Should be one of'.lst' (default), '.out', '.res', '.mod' or '.ctl' for NONMEM. |
table_suffix |
suffix of the output tables, standard is "" (no suffix). |
sim_suffix |
suffix of the simulation output tables, standard is "sim" (e.g. stdab1sim). |
simfile |
Useful if the simulation is peformed post-hoc and an additional simulation model file is generated e.g. "simulation.lst"; similar to "file" see above. |
prefix |
Prefix to be used to generate model file name. Used in combination with |
table_names |
contains the names of the NONMEM-output tables e.g. "sdtab", "patab", "cotab", "catab". |
dvid |
[Optional] |
pred |
[Optional] |
time |
[Optional] |
dv |
|
conts |
[Optional] |
cats |
[Optional] |
npde |
[Optional] |
iwres |
[Optional] |
ipred |
[Optional] |
endpoint |
[Optional] |
strats |
[Optional] |
settings |
|
vpc |
|
bloq |
|
obs |
|
quiet |
Logical, if |
pmxClass
controller object.
The ggPMX NONMEM reader (pmx_nm) is strongly based on NONMEM reading functions of the xpose package (v.0.4.11) (Thanks to Benjamin Guiastrennec) To avoid conflicts with the xpose package, the necessary xpose-based functions have been renamed with a "pmx_" prefix. If the user wants to use individual functions e.g. "read_nm_tables" please use the xpose-package
## using only runnumber
# ctr <- pmx_nm(
# directory=model_dir,
# runno = "001"
#)
## using a model file (e.g. run001.lst)
#ctr <- pmx_nm(
# directory=model_dir,
# file = "run001.lst"
#)
## if simulation was performed post-hoc, an additional simulation file can be loaded for VPC
#ctr <- pmx_nm(
# directory=model_dir,
# file = "run001.lst",
# simfile = "simulation.ctl"
#)
## loading with individual table(s)-names
#ctr <- pmx_nm(directory = model_dir,
# runno = 3,
# table_names = "xptab")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.