Re: [Rd] lm considers removed predictors when finding complete cases

2017-12-19 Thread David Winsemius
> On Dec 19, 2017, at 11:12 AM, EDUARDO GARCIA PORTUGUES > wrote: > > Dear R-devel list, > > I realized that removing a predictor in lm through the "-"'s operator in > formula() does not affect the complete cases that are considered. A minimal > example is: > > summary(lm(Wind ~ ., data = air

[Rd] lm considers removed predictors when finding complete cases

2017-12-19 Thread EDUARDO GARCIA PORTUGUES
Dear R-devel list, I realized that removing a predictor in lm through the "-"'s operator in formula() does not affect the complete cases that are considered. A minimal example is: summary(lm(Wind ~ ., data = airquality)) # 42 observations deleted due to missingness summary(lm(Wind ~ . - Ozone, d