powered by
Methods of predict and fitted
predict
fitted
# S3 method for regrpolr predict(object, newdata = NULL, type = c("class", "probs", "link"), ...) # S3 method for regrpolr fitted(object, type = c("class", "probs", "link"), ...)
Vector of predicted or linear predictor values
result of polr
polr
data frame in which to look for variables with which to predict. If NULL, fitted values are produced.
NULL
type of prediction: "link" asks for the linear predictor values. Other types are available according to the standard methods of the predict function.
"link"
type
arguments passed to standard methods of predict or fitted
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) }
Run the code above in your browser using DataLab