read_extfile: Reads .ext files generated by NONMEM

View source: R/read_extfile.R

read_extfileR Documentation

Reads .ext files generated by NONMEM

Description

Reads .ext files generated by NONMEM

Usage

read_extfile(
  run = NA_real_,
  project = getwd(),
  file = paste0(run, ".ext"),
  path = NULL,
  read_fun = c("data.table", "read.table"),
  quiet
)

Arguments

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 FALSE messages are printed to the console.

Value

A list with param, omega, and sigma in a format ready to be used.

Author(s)

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)

Examples

#project <- system.file("nonmem", package = "mrgsolve") 
#est <- read_nmext(1005, project = project) 

ggPMX documentation built on July 9, 2023, 7:45 p.m.