Learn R Programming

CAST (version 0.9.0)

errorModel: Model expected error between Metric and DI

Description

Model expected error between Metric and DI

Usage

errorModel(preds_all, model, window.size, calib, k, m)

Value

scam or lm

Arguments

preds_all

data.frame: pred, obs, DI

model

the model used to get the AOA

window.size

Numeric. Size of the moving window. See rollapply.

calib

Character. Function to model the DI~performance relationship. Currently lm and scam are supported

k

Numeric. See mgcv::s

m

Numeric. See mgcv::s