If newdata
is not specified, the data originally used for fitting will be used.
# S3 method for groupwiseModel
predict(object, newdata = object$data,
type = c("class", "likelihood", "prob"), level = NULL, ...)
a groupwise model
new data from which to compute fitted valeus.
one of "class", "likelihood", or "prob"
an optional character string specifying the level for which probabilities are to be reported. Defaults
to the first class of the potential outputs. Set to ".all"
to see probabilities for all levels.
additional arguments (currently ignored)
setting the type
is needed only for classifiers. "class"
will give just the
class as output. "likelihood"
will give the probability of the observed outcome (in newdata
)
given the model. "prob"
will give the probability of the class named in level