Aliases: augment.polr
Keywords:
### ** Examples # feel free to ignore the following line—it allows {broom} to supply # examples without requiring the model-supplying package to be installed. if (requireNamespace("MASS", quietly = TRUE)) { # load libraries for models and data library(MASS) # fit model fit <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing) # summarize model fit with tidiers tidy(fit, exponentiate = TRUE, conf.int = TRUE) glance(fit) augment(fit, type.predict = "class") fit2 <- polr(factor(gear) ~ am + mpg + qsec, data = mtcars) tidy(fit, p.values = TRUE) }
# A tibble: 8 × 6 term estimate std.error statistic p.value coef.type <chr> <dbl> <dbl> <dbl> <lgl> <chr> 1 InflMedium 0.566 0.105 5.41 NA coefficient 2 InflHigh 1.29 0.127 10.1 NA coefficient 3 TypeApartment -0.572 0.119 -4.80 NA coefficient 4 TypeAtrium -0.366 0.155 -2.36 NA coefficient 5 TypeTerrace -1.09 0.151 -7.20 NA coefficient 6 ContHigh 0.360 0.0955 3.77 NA coefficient 7 Low|Medium -0.496 0.125 -3.97 NA scale 8 Medium|High 0.691 0.125 5.50 NA scale