x
. See details for generic use cases.Err(object, data, response, ...)
nmod(object)
or a matrix with
nmod(object)
columns containing error rates for
the models
fit
a sgl fit object with
models estimated usingx
data, the codeErr(fit, x)
should return a vector with thetraining errorsof
the models.x.new
a new data set with known
responsesresponse.new
, the codeErr(fit, x.new, response.new)
should return a vector with the errors of the models when
applied to the new data set.fit.cv
a
sgl cross validation object, the codeErr(fit.cv)
should return a vector with estimates of theexpected generalization errorsof the models (i.e.
the cross validation errors).fit.sub
a sgl subsampling object, the codeErr(fit.sub)
should return a matrix with the test errors (each column
corresponding to a model, i.e. rows corresponds to
tests).