If newdata
is omitted and type = "prob"
a vector of
fitted probabilities are returned identical to the result from
fitted
.
If newdata
is supplied and the response
variable is omitted, then predictions, standard errors and intervals
are matrices rather than vectors with the same number of rows as
newdata
and with one column for each response class. If
type = "class"
predictions are always a vector.
If newdata
is omitted, the way missing values in the original fit are handled
is determined by the na.action
argument of that fit. If
na.action = na.omit
omitted cases will not appear in the
residuals, whereas if na.action = na.exclude
they will appear (in predictions, standard
errors or interval limits), with residual value NA
. See also
napredict
.
If type = "cum.prob"
or type = "linear.predictor"
there
will be two sets of predictions, standard errors and intervals; one
for j and one for j-1 (in the usual notation) where j = 1, ..., J index
the response classes.
If newdata is supplied and the response variable is omitted, then
predict.clm
returns much the same thing as predict.polr
(matrices of predictions). Similarly, if type = "class"
.
If the fit is rank-deficient, some of the columns of the design matrix
will have been dropped. Prediction from such a fit only makes sense if
newdata is contained in the same subspace as the original data. That
cannot be checked accurately, so a warning is issued
(cf. predict.lm
).
If a flexible link function is used (Aranda-Ordaz
or log-gamma
)
standard errors and confidence intervals of predictions do not take the
uncertainty in the link-parameter into account.