Summarize a ferx fit result

Description

Returns a compact list with the most-used diagnostic fields: model name, dataset, estimation method (including the full chain when multiple methods were chained), OFV/AIC/BIC, parameter estimates, standard errors, shrinkage, effective settings, SIR ESS (when available), warnings, and run metadata. Printing the returned object via print() or auto-printing formats all fields in a human-readable layout.

Usage

# S3 method for ferx_fit
summary(object, ...)

Arguments

  • object: A ferx_fit object returned by [ferx_fit](ferx_fit.qmd).
  • ...: Ignored.

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)(), [ferx_warnings](ferx_warnings.qmd)()

Concept

diagnostics

Value

A ferx_summary list (invisibly). Fields include: model_name, data_name, method, method_chain, gradient, gradient_used, converged, ofv, aic, bic, n_subjects, n_obs, n_parameters, n_iterations, theta, se_theta, omega, se_omega, sigma, se_sigma, shrinkage_eta, shrinkage_eps, covariance_status, eigenvalues, condition_number(see [ferx_fit](ferx_fit.qmd) for definitions), wall_time_secs, ferx_version, call_settings, model_file_settings, sir_ess, importance_sampling, warnings, ebe_convergence_warnings, max_unconverged_subjects, total_ebe_fallbacks, dw_statistic, iwres_lag1_r.

Examples

ex  <- ferx_example("warfarin")
fit <- ferx_fit(ex$model, ex$data)
summary(fit)

# Chained estimation: SAEM warm-start followed by FOCEI refinement
fit_chain <- ferx_fit(ex$model, ex$data, method = c("saem", "focei"))
summary(fit_chain)

# With custom settings (shown in the Settings block)
fit_custom <- ferx_fit(ex$model, ex$data,
  settings = list(optimizer = "slsqp", max_iter = 200L))
summary(fit_custom)