[R] forcing a variable in a model

From: Jenny Dawson <jennydawson1122_at_hotmail.com>
Date: Thu 13 Oct 2005 - 08:33:53 EST

I am interested in using polymars in R. I will be inputting 10 X variables and my outcome Y variable. I want to make sure my final model includes X1 and any additional variables (X2-X10) chosen with the data adaptive regression technique. Is this possible with polymars?

In addition, if I use the step() finction after a lm() function, can I force one variable to be in the final model? I tried using the scope argument in the step() command, but had no luck. I set my upper equal to my full model and was not sure how I tell R that my lower model must have X1 in the model.

Thank you in advance,

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 13 08:37:54 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:49:29 EST