Load parameter values from a nonmem .ext output file and compile to table suitable for reports. Format can be "wide" (wide=TRUE, default) with a similar look as from sumoR, or similar a 3 column layout (wide=FALSE).

extToTable(
  model,
  use.model.path = TRUE,
  tableType = 2,
  wide = TRUE,
  format.estimate = "% -#6.4g",
  format.rse = "%#6.3g"
)

Arguments

model

name of the ext file with or without the .ext extension. model may include full or relative path to the ext file. See examples.

use.model.path

Load file from a global defined model library (TRUE=default). If so will look for a global character vector named model.path

tableType

Table type for THETA's, OMEGA's and SIGMA's

tableType=0: Present OMEGA and SIGMA as variance and covariances and display SE for THETA, OMEGA, SIGMA

tableType=1: Present OMEGA and SIGMA as variance and covariances and display RSE for THETA, OMEGA, SIGMA

tableType=2: Present OMEGA and SIGMA as standard-deviation and correlations and display RSE for THETA, OMEGA, SIGMA

tableType=3: Present OMEGA and SIGMA as standard-deviation and correlations and display SE for THETA, OMEGA, SIGMA

wide

produce a wide 9-column table (wide=TRUE, default) or a thin 3-column table(wide=FALSE)

format.estimate

format for estimated value, passed to sprintf

format.rse

format for rse, passed to sprintf

Value

a character-matrix

Examples

##### Load the .ext file "run001.ext"
# 1) Get path to the example file included in nonmem2R package
file1 <- system.file("extdata", "run001.ext", package = "nonmem2R")
# 2) Load the file using the extload function
extToTable(file1)
#>  Theta.ID Theta.Est Theta.RSE Omega.ID Omega.Est Omega.RSE Sigma.ID Sigma.Est
#>  1        27.73     (0.0652)  [1,1]    0.2654    (0.220)                     
#>  2        112.8     (0.0945)  [2,2]    0.1967    (0.179)                     
#>  3        98.25     (0.0651)  [3,3]    0.2074    (0.135)                     
#>  4        20.81     (0.115)   [5,5]    0.3832    (0.115)                     
#>  5        0.1682    (0.0516)  [7,7]    0.2251    (0.183)                     
#>  6        0.9382    (0.0760)                                                 
#>  8        15.60     (0.0372)                                                 
#>  9        9.696     (0.0422)                                                 
#>  10       44.52     (0.0505)                                                 
#>  11       5.560     (0.0700)                                                 
#>  12       0.1455    (0.0511)                                                 
#>  13       1.657     (0.0990)                                                 
#>  14       1.077     (0.149)                                                  
#>  15       1.958     (0.0964)                                                 
#>  Sigma.RSE
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#>           
#> OMEGA and SIGMA presented as standard deviation and correlations