step.glm(object, scope, scale, direction="both", trace=T, keep, steps)
If scope is missing, the search defaults to a backward step-wise search, using formula(object) as the upper scope, and the NULL model as the lower scope. If scope is a single formula object, it is assumed to be the upper model. Any "." in the scope formula is interpreted relative to the formula in object.
glm.object <- glm(Kyphosis ~ Age + Start + Number, family = binomial, data = kyphosis)step(glm.object) step(glm.object,list(upper = ~.^2, lower = ~ Age))