Convenience wrapper that runs all fetch_* functions in a single call and
returns a named list. Failed individual parsers produce a warning and return
NULL for that element rather than stopping the entire call.
Arguments
- lst
An object of class
"lst"fromread_lst_file().- digits
Integer or
NA. Rounding for RSE values. DefaultNA.- shk_digits
Integer or
NA. Rounding for ETA shrinkage. DefaultNA.- ofv_digits
Integer or
NA. Rounding for OFV. DefaultNA.- cn_digits
Integer or
NA. Rounding for condition number. DefaultNA.
Value
A named list with elements:
- thetas
tibble from
fetch_thetas(), orNULLon failure.- etas
tibble from
fetch_etas(), orNULLon failure.- sigmas
tibble from
fetch_sigmas(), orNULLon failure.- ofv
Numeric from
fetch_ofv(), orNULLon failure.- condn
Numeric from
fetch_condn(),NAif no covariance step, orNULLon failure.
Examples
path <- system.file("extdata", "lst", "s01_focei_cov_success.lst",
package = "lstparsR")
lst <- read_lst_file(path)
result <- fetch_all(lst)
result$thetas
#> # 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
result$ofv
#> [1] 1873.406