Learn R Programming

SpatioTemporal (version 1.1.2)

summary.predCVSTmodel: Computes summary details for predCVSTmodel object

Description

summary method for class predCVSTmodel.

Usage

## S3 method for class 'predCVSTmodel':
summary(object,
    pred.naive = NULL, by.date = FALSE, p = 0.95,
    transform = function(x) {     return(x) }, LTA = FALSE,
    ...)

Arguments

object
predCVSTmodel object to compute summary information for; the output from predictCV.STmodel.
pred.naive
Result of naive prediction; used to compute modified R2 values. The output from predictNaive.
by.date
Compute individual cross-validation statistics for each time-point. May lead to very many statistics.
p
Approximate coverage of the computed confidence bands; the confidence bands are used when computing coverage of the cross-validated predictions.
transform
Transform observations and predictions before computing statistics; see also computeLTA
LTA
Compute cross-validation statistics for the long term averages at each site, uses computeLTA to compute the averages. transform is passed to co
...
Ignored additional arguments.

Value

  • A summary.predCVSTmodel object.

Details

Computes summary statistics for cross validation. Statistics that are computed include RMSE, R2, and coverage of CI:s; both for all observations and (possibly) stratified by date.

See Also

Other predCVSTmodel methods: estimateCV.STmodel, plot.predCVSTmodel, plot.predictSTmodel, predictCV.STmodel, print.predCVSTmodel, print.summary.predCVSTmodel

Examples

Run this code
##load some data
data(CV.mesa.model)

##basic summary statistics
summary(pred.cv.mesa)
##computed on the natural scale, and with long term averages
summary(pred.cv.mesa, transform=exp, LTA=TRUE)

##store the results
cv.summary <- summary(pred.cv.mesa, transform=exp, LTA=TRUE)
##and study the contents
str(cv.summary)

Run the code above in your browser using DataLab