Skip to contents

Parses the THETA (fixed effects) parameter estimates and, if available, their standard errors and relative standard errors (RSE) from a NONMEM .lst file.

Usage

fetch_thetas(lst, digits = NA)

Arguments

lst

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

digits

Integer or NA. Number of decimal places to round RSE. Default NA (no rounding).

Value

A tibble with columns:

parameter

Character. Parameter label (e.g. "TH_1").

estimate

Numeric. Point 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_thetas(lst)
#> # A tibble: 4 × 4
#>   parameter estimate    se   rse
#>   <chr>        <dbl> <dbl> <dbl>
#> 1 TH_1         4.37  0.312  7.14
#> 2 TH_2        31.2   2.05   6.57
#> 3 TH_3         1.15  0.143 12.4 
#> 4 TH_4         0.682 0.121 17.7