Skip to contents

Parses the SIGMA covariance matrix diagonal (variance of residual errors) and, if available, standard errors and RSE from a NONMEM .lst file.

Usage

fetch_sigmas(lst, digits = NA)

Arguments

lst

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

digits

Integer or NA. Rounding for rse. Default NA.

Value

A tibble with columns:

parameter

Character. Parameter label as printed (e.g. "EPS1"; "EP10" from the tenth EPS 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.

Examples

path <- system.file("extdata", "lst", "s01_focei_cov_success.lst",
                    package = "lstparsR")
lst  <- read_lst_file(path)
fetch_sigmas(lst)
#> # A tibble: 1 × 4
#>   parameter estimate      se   rse
#>   <chr>        <dbl>   <dbl> <dbl>
#> 1 EPS1        0.0277 0.00341  12.3