avg_residual: Average Residual

Description Usage Arguments Details Value Author(s)

View source: R/metrics.R

Description

Residual averaged acorss simulations

Usage

1
avg_residual(obs, pred)

Arguments

obs

observed vector T X 1

pred

matrix of predicted observations. Each column is a simulation. T X N where N is the number of simulations.

Details

∑_{i = 1}^{N}{obs - pred} / N

Value

error T X 1. Each entry is the error averaged across the simulations.

Author(s)

Sangeeta Bhatia


sangeetabhatia03/assessr documentation built on Aug. 22, 2020, 9:32 a.m.