Computes the condition number of the correlation matrix of parameter estimates as the ratio of the largest to smallest eigenvalue. A condition number above 1000 typically indicates numerical difficulties in parameter estimation.
Arguments
- lst
An object of class
"lst"fromread_lst_file().- digits
Integer or
NA. Rounding for the condition number. DefaultNA.
Value
A single numeric value (the condition number), or NA_real_ if the
eigenvalue section is absent.
Examples
path <- system.file("testdata", "full_cov.lst", package = "lstparsR")
lst <- read_lst_file(path)
fetch_condn(lst)
#> [1] 23.30882