add1.lm(object, scope, scale, keep, x = NULL)
otherwise, a list with components:
add1 handles weighted lm objects, in particular glm objects. The weighted residual sum of squares is a Pearson chi-square statistic based on the weights of the model object, and a one-step iteration towards the superset model. This results in a score test for the inclusion of each term. The function add1 is used as a primitive in step.glm.
This function is a method for the generic function add1 for class "lm". It can be invoked by calling add1 for an object of the appropriate class, or directly by calling add1.lm regardless of the class of the object.
attach(catalyst) fit1<- aov(Yield ~ Temp + Cat + Conc) add1(fit1, ~ .^2) # consider all interactions of terms in lm.object for inclusionattach(kyphosis) kyph.glm <- glm(Kyphosis ~ poly(Age, 2) + (Number > 5) * Start, family = binomial) add1(kyph.glm, ~ . - Age + poly(Age, 2)+ log(Age) + sqrt(Age)) # try some candidate transformations for Age.