predict.regrpolr {plgraphics} | R Documentation |
Methods of predict
and fitted
## S3 method for class 'regrpolr' predict(object, newdata = NULL, type = c("class", "probs", "link"), ...) ## S3 method for class 'regrpolr' fitted(object, type = c("class", "probs", "link"), ...)
object |
result of |
newdata |
data frame in which to look for variables with
which to predict. If |
type |
type of prediction: |
... |
arguments passed to standard methods of |
Vector of predicted or linear predictor values
Werner A. Stahel, ETH Zurich
predict, fitted, residuals.regrpolr
require(MASS) data(housing, package="MASS") rr <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing) fitted(rr)