This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: lm.
add1(object, scope, ...)
# consider all interactions of terms in lm.object for inclusion add1(lm.object, ~ .^2)glm.object <- glm(Kyphosis ~ bs(Start, 5) + Number, family = binomial, data = kyphosis) # try some candidate transformations for Age. add1(glm.object, ~ . -Age + poly(Age,2) + log(Age) + sqrt(Age))