fitted.regr {regr0} | R Documentation |
fitted.regr
extracts fitted values from regr
objects.
The function is needed for results of survival models, including Tobit
models.
fitted.polr
calculates Fitted Values for ordered response regression.
In addition to the types of the usual version, this function allows
for extracting the link
type of predictions.
## S3 method for class 'regr' fitted(object, type = NULL, ...) ## S3 method for class 'polr' fitted(object, type = "link", na.action = object, ...)
object |
an object of class |
type |
type of fitted values (as with
|
na.action |
object that possibly contains an |
... |
further arguments, passed to |
Vector (or matrix) of fitted values
Werner A. Stahel, Seminar for Statistics, ETH Zurich
data(housing, package="MASS") house.plr <- MASS::polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing) house.fit <- fitted(house.plr, type="link") # only possible with regr version summary( house.fit )