summary.hydromad {hydromad}R Documentation

Assess and summarise performance of Hydromad models

Description

Assess and summarise performance of Hydromad models.

Usage

## S3 method for class 'hydromad'
summary(object, breaks = NULL, 
        stats = hydromad.getOption("summary.stats"),
        with.hydrostats = TRUE, na.action = na.exclude, ...)

## S3 method for class 'hydromad.runlist'
summary(object, with.hydrostats = FALSE, ...)

Arguments

object

an object of class hydromad.

breaks

if specified, break up the time series and calculate statistics for each chunk. Can be a vector of cut points or number of intervals to cut into or an interval specification, one of "sec", "min", "hour", "day", "DSTday", "week", "month" or "year", optionally preceded by an integer and a space, or followed by "s". See cut.Date.

stats

which performance statistics to compute. The definitions are looked up by name in hydromad.stats(). See Details.

with.hydrostats

to also include timesteps, missing (number of timesteps with missing data), mean.P, mean.Q, runoff (mean rainfall and streamflow, and their ratio).

na.action

an optional function to apply to the data to treat missing values before calculating statistics.

...

ignored.

Details

Definitions of statistics are looked up by name in hydromad.stats(), and you can also use that function to add new statistics.

Value

summary returns a list with named entries for each of the chosen stats (stats). When breaks is given it retuns a zoo object of class "summaryWithBreaks".

Author(s)

Felix Andrews felix@nfrac.org

See Also

hydromad.stats, objFunVal for a way to calculate statistic values directly; hydromad.object

Examples


data(HydroTestData)
mod0 <- hydromad(HydroTestData, sma = "scalar",
                 routing = "expuh", tau_s = 10)
mod0

summary(mod0)

summary(mod0, breaks = "months")
#summary(mod0, breaks = 3)

allstats <- names(hydromad.stats())
summary(mod0, stats = allstats)

objFunVal(mod0, hmadstat("r.sq.log"))

str(objFunVal(mod0, hydromad.stats()))

[Package hydromad version 0.9-18 Index]