Skip to contents

Parses the OMEGA covariance matrix diagonal (variance of random effects) and, if available, standard errors, RSE, and ETA shrinkage from a NONMEM .lst file.

Usage

fetch_etas(lst, digits = NA, shk_digits = NA)

Arguments

lst

An object of class "lst" from read_lst_file().

digits

Integer or NA. Rounding for rse. Default NA.

shk_digits

Integer or NA. Rounding for shrinkage. Default NA.

Value

A tibble with columns:

parameter

Character. Parameter label as printed (e.g. "ETA1"; "ET10" from the tenth ETA on).

estimate

Numeric. Diagonal variance estimate.

se

Numeric. Standard error. NA if no covariance step.

rse

Numeric. Relative standard error (%). NA if no covariance step.

shrinkage

Numeric. ETA shrinkage (%). NA if not reported.

Examples

path <- system.file("extdata", "lst", "s01_focei_cov_success.lst",
                    package = "lstparsR")
lst  <- read_lst_file(path)
fetch_etas(lst)
#> # A tibble: 3 × 5
#>   parameter estimate     se   rse shrinkage
#>   <chr>        <dbl>  <dbl> <dbl>     <dbl>
#> 1 ETA1        0.0841 0.0213  25.3      8.42
#> 2 ETA2        0.0529 0.0187  35.3     21.3 
#> 3 ETA3        0.312  0.0954  30.6     37.9