Skip to contents

Reads the final estimates (THETA, OMEGA, SIGMA) from a NONMEM .ext file, e.g. to check a model translated to mrgsolve.

Usage

mvp_nonmem_estimates(ext_file)

Arguments

ext_file

Path to a NONMEM .ext file.

Value

A data frame with name (e.g. THETA1, OMEGA(1,1)), value and fixed, from the last estimation step. Zero off-diagonal elements are left out.

See also

Examples

ext <- tempfile(fileext = ".ext")
writeLines(c("TABLE NO.     1: First Order Conditional Estimation",
             " ITERATION THETA1 THETA2 OMEGA(1,1) OMEGA(2,1) OMEGA(2,2) SIGMA(1,1) OBJ",
             "  -1000000000 2.5E+00 3.0E+01 9.0E-02 0.0E+00 4.0E-02 1.0E-02 100.0",
             "  -1000000006 0 1 0 1 0 0 0"), ext)
mvp_nonmem_estimates(ext)
#>         name value fixed
#> 1     THETA1  2.50 FALSE
#> 2     THETA2 30.00  TRUE
#> 3 OMEGA(1,1)  0.09 FALSE
#> 4 OMEGA(2,2)  0.04 FALSE
#> 5 SIGMA(1,1)  0.01 FALSE