inst/tests/enhances-MASS.R

library(MASS)

# rlm
fit <- rlm(Ozone ~ ., data=airquality)
visreg(fit, 'Wind')

# polr
fit <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing)
visreg(fit, 'Infl', partial=FALSE, collapse=TRUE)
visreg(fit, 'Infl', partial=FALSE, collapse=TRUE, gg=TRUE)
visreg(fit, 'Infl', partial=FALSE, collapse=TRUE, overlay=TRUE)
visreg(fit, 'Infl', type='contrast', partial=FALSE)

Try the visreg package in your browser

Any scripts or data that you put into this service are public.

visreg documentation built on July 1, 2020, 10:24 p.m.