predict.regrpolr | 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
if(requireNamespace("MASS")) {
data(housing, package="MASS")
rr <- MASS::polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing)
aa <- fitted(rr)
bb <- predict(rr)
cc <- predict.regrpolr(rr)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.