I am looking for a variable selection technique in R to reduce the number of my regression predictors, where I can force the method to keep a specific variable within the model. Here is a toy example from the R help of ?step, the variable "Examination" will be removed:
summary(lm1 <- lm(Fertility ~ ., data = swiss));
slm1 <- step(lm1);
summary(slm1);
scopeoption (and there is enough information on this pre-selection in?step). – Dmitrij Celov Jul 07 '11 at 06:48step(), are not valid. If that doesn't make sense / you want to know why, you may want to read my answer here: algorithms-for-automatic-model-selection. – gung - Reinstate Monica May 26 '13 at 19:10