drop1(object, scope, ...)
## Default S3 method:
drop1(object, scope, scale = 0,
test = c("none", "Chisq"), k = 2, trace = FALSE, ...)
## S3 method for class 'lm':
drop1(object, scope, scale = 0, all.cols = TRUE,
test = c("none", "Chisq", "F"), k = 2, ...)
## S3 method for class 'glm':
drop1(object, scope, scale = 0,
test = c("none", "Rao", "LRT", "Chisq", "F"), k = 2, ...)
| object | A fitted model, from which new models can be formed by dropping terms found in its formula. |
| scope |
A description of the range of new terms to drop.
This can be either a formula or a character vector.
Methods for drop1 defined in add-on packages can use different parameterizations of scope. |
| scale | a number passed to extractAIC to compute the AIC for a model. If 0, then the scale is estimated from the original model. |
| test |
A character string specifying which test statistic to return.
One of "none", "Rao", "LRT", "Chisq", "F",
and possibly others, depending on the type of model.
|
| all.cols | The all.cols argument to drop1.lm is ignored. |
| x | the model.matrix for the original model. Some methods can use this to save some time. |
| k | a number passed to extractAIC to modify how the AIC is computed. |
| ... | other arguments are silently ignored. |
fit1 <- lm(Yield ~ Temp * Conc, data=Sdatasets::catalyst) # All single term deletions satisfying marginality principle drop1(fit1)