Attaches the name, the orientation, and the standard error of the
difference to a measure function. Pass the result to the measures
argument of the *_pred_measure() functions.
Arguments
- fun
A function that returns
estimate,se, andpointwise. Only the argumentsy,ypred,mupred,ylp, andlog_weightsthat are in its signature are supplied.- name
A character string. The measure is reported under this name.
- se_diff_fun
How
model_compare()computes the standard error of a difference: a function(ref, cmp),"sum","mean", orNULL. WithNULL(the default), the standard error of the difference isNA.- loss
TRUEif lower values are better. The defaultFALSEtreats the measure as a utility.