summarizeModel.loadInterp: Extract model summary statistics from a loadInterp model

View source: R/loadInterp.R

summarizeModel.loadInterpR Documentation

Extract model summary statistics from a loadInterp model

Description

Produce a 1-row data.frame of model metrics. The relevant metrics for loadInterp models include RMSE, p-values, and others TBD.

Usage

## S3 method for class 'loadInterp'
summarizeModel(load.model,
  irregular.timesteps.ok = NA, ...)

Arguments

load.model

A load model object, typically inheriting from loadModel and always implementing the loadModelInterface.

irregular.timesteps.ok

logical. If FALSE, this function requires that the timesteps between observations are identical to one another, and a plot is generated and an error is thrown if this requirement is not met. If TRUE, the check is not performed. If NA (the default), the check is performed but the function proceeds with a warning and no plot if the timesteps are found to be irregular. Tests and estimates of autocorrelation are weak to wrong when timesteps are irregular, but timesteps are often at least a bit irregular in the real world.

...

Other arguments passed to model-specific methods

Value

Returns a 1-row data frame with the following columns:

  • site.id - the unique identifier of the site, as in metadata()

  • constituent - the unique identifier of the constituent, as in metadata()

  • RMSE.lin- the square root of the mean squared error

  • durbin.watson - the Durbin Watson test statistic as applied to the observations used to fit the interpolation model

  • rho, acf1, acf1demean, corlag - measures of the autocorrelation of the observations used to fit the model

See Also

Other summarizeModel: summarizeModel.loadComp, summarizeModel.loadLm, summarizeModel.loadModel, summarizeModel.loadReg2, summarizeModel


USGS-R/loadflex documentation built on July 26, 2023, 9:54 p.m.