inst/Examples/dropModel.R

dropModel <- function(model, drop) {
    model2 <- update(model,
                         dropFormula(model, drop))
    plot(resid(model), resid(model2),
         xlab = "Original Residuals",
         ylab = paste("Residuals after dropping", drop))
    abline(0,1)
    model2
}

Try the SoDA package in your browser

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

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.