R: Default Nonconformity measure used in regression...
StandardMeasure
R Documentation
Default Nonconformity measure used in regression (ConformalRegression class)
Description
Nonconformity measure used by default in the class ConformalRegression to calculate nonconformity scores (alpha).
StandardMeasure implements the following nonconformity measure:
alpha = |obs - pred| / pred_error
where alpha is the nonconformity measure,
obs is the observed value,
pred the predicted value with a point prediction model,
and pred_error is the error in prediction predicted with an error model.
See conformal for further information about how to derive individual confidence intervals.
Usage
StandardMeasure(obs, pred, error)
Arguments
obs
Observed values for the response variable.
pred
Predicted values for the response variable.
error
Predicted errors calculated with an error model.
Value
A numeric vector with the nonconformity scores (alpha).