Dear all I want to run a simple multiple linear regression model, say:
mod <- lm(y~x1+x2+x3+x4) I have programmed a custom algorithm to calculate the p-values, because there is clustering present. I ordered the variables according to their p-value and want to stepwise eliminate the variables with the highest p-values. My question: How can I use "update" when I have only the variable name als string (e.g., "x1")? Or is there another convenient way to update the model? Thanks! Sincerely, Denis -------------------------------------------------------------------------- This email and any files transmitted with it are confide...{{dropped:8}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.