Learn R Programming

RiskMap (version 1.0.0)

summary.RiskMap.spatial.cv: Summarize Cross-Validation Scores for Spatial RiskMap Models

Description

This function summarizes cross-validation scores for different spatial models obtained from assess_pp.

Usage

# S3 method for RiskMap.spatial.cv
summary(object, view_all = TRUE, ...)

Value

A matrix of summary scores with models as rows and metrics as columns, with class `"summary.RiskMap.spatial.cv"`.

Arguments

object

A `RiskMap.spatial.cv` object containing cross-validation scores for each model, as obtained from assess_pp.

view_all

Logical. If `TRUE`, stores the average scores across test sets for each model alongside the overall average across all models. Defaults to `TRUE`.

...

Additional arguments passed to or from other methods.

Author

Emanuele Giorgi e.giorgi@lancaster.ac.uk

Details

The function computes and returns a matrix where rows correspond to models and columns correspond to performance metrics (e.g., CRPS, SCRPS). Scores are weighted by subset sizes to compute averages. Attributes of the returned object include:

  • `test_set_means`: A list of average scores for each test set and model.

  • `overall_averages`: Overall averages for each metric across all models.

  • `view_all`: Indicates whether averages across test sets are available for visualization.

See Also

assess_pp