diagnostics: Extract diagnostics from a gwrf_fit object

View source: R/diagnostics.R

diagnosticsR Documentation

Extract diagnostics from a gwrf_fit object

Description

Extract diagnostics from a gwrf_fit object

Usage

diagnostics(object, ...)

Arguments

object

A gwrf_fit object.

...

Unused.

Value

A named list containing overall model diagnostics:

rmse

Root mean squared error across fitted focal observations.

mae

Mean absolute error across fitted focal observations.

r2

Coefficient of determination calculated from observed and predicted focal values.

n_focal

Number of focal observations for which local models were requested.

Examples

example_fit <- structure(
  list(
    diagnostics = list(
      rmse = 0.25,
      mae = 0.18,
      r2 = 0.80,
      n_focal = 3
    )
  ),
  class = "gwrf_fit"
)

diagnostics(example_fit)

gwrf documentation built on Aug. 24, 2026, 5:15 p.m.