Structured warnings from a ferx fit

Description

Returns or prints the warnings produced by a fit, classified by severity (critical, warning, info) and category. Severity and category are assigned by the ferx-core engine (for engine warnings) or by the R diagnostics layer (for condition number and ETA normality); the R side never re-parses message text to guess severity.

Usage

ferx_warnings(fit, as_df = FALSE)

Arguments

  • fit: A ferx_fit object returned by [ferx_fit](ferx_fit.qmd).
  • as_df: Logical. When TRUE, returns the raw data frame (severity, category, message, source_method) instead of pretty-printing. Default FALSE.

Seealso

Other diagnostics: [check_diagnostics](check_diagnostics.qmd)(), [ferx_cor_matrix](ferx_cor_matrix.qmd)(), [ferx_cov_screen](ferx_cov_screen.qmd)(), [ferx_estimates](ferx_estimates.qmd)(), [ferx_eta_cov](ferx_eta_cov.qmd)(), [ferx_plot_trace](ferx_plot_trace.qmd)(), [ferx_runlog_iters](ferx_runlog_iters.qmd)(), [ferx_trace](ferx_trace.qmd)(), [summary.ferx_fit](summary.ferx_fit.qmd)()

Concept

diagnostics

Value

When as_df = TRUE, a data frame. Otherwise the same data frame invisibly, after printing a grouped, colour-coded summary (critical first, then warning, then info).

Examples

ex  <- ferx_example("warfarin")
fit <- ferx_fit(ex$model, ex$data, method = "gn", covariance = FALSE)
ferx_warnings(fit)
ferx_warnings(fit, as_df = TRUE)