compute_error: Helper function for computing error rates
Description
Helper function for computing error rates
Usage
compute_error(object, data = NULL, response.name,
response, loss)
Arguments
object
a object containing responses
data
a data object
response.name
the name of the response, if
response.name = NULL then x will be treated
as the response.
response
the response
loss
the loss function
Value
a vector with the computed error rates
Details
This function can be used to compute error rates. It is
consist with the use cases of the Err genetic
function. (see msgl package for an example of how
to use this function)