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

Re: [Rd] abort

2017-12-19 Thread luke-tierney
Thanks; fixed in R-devel and R-patched. Best, luke On Tue, 19 Dec 2017, Gábor Csárdi wrote: FYI. Gábor ❯ R --vanilla -q sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Sierra 10.12.6 Matrix products: default BLAS: /Library/Fram

[Rd] abort

2017-12-19 Thread Gábor Csárdi
FYI. Gábor ❯ R --vanilla -q > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Sierra 10.12.6 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.fram

[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