Re: [R] predict: remove columns with new levels automatically

2009-11-25 Thread Andreas Wittmann
ing) predict(lm1, subset(test, z %in% lm1$x$z) ) # get prediction for good level only 1 0.4225204 Original-Nachricht Datum: Wed, 25 Nov 2009 00:48:59 -0500 Von: David Winsemius An: Andreas Wittmann CC: r-help@r-project.org Betreff: Re: [R] predict: remove colu

Re: [R] predict: remove columns with new levels automatically

2009-11-25 Thread David Winsemius
lm1 <- lm(x ~ ., data=training) predict(lm1, subset(test, z %in% lm1$x$z) ) # get prediction for good level only 1 0.4225204 Original-Nachricht Datum: Wed, 25 Nov 2009 00:48:59 -0500 Von: David Winsemius An: Andreas Wittmann CC: r-help@r-project.org Betreff: Re

Re: [R] predict: remove columns with new levels automatically

2009-11-25 Thread Peter Ehlers
-- Original-Nachricht Datum: Wed, 25 Nov 2009 00:48:59 -0500 Von: David Winsemius An: Andreas Wittmann CC: r-help@r-project.org Betreff: Re: [R] predict: remove columns with new levels automatically On Nov 24, 2009, at 2:24 PM, Andreas Wittmann wrote: Dear R-users, in

Re: [R] predict: remove columns with new levels automatically

2009-11-24 Thread Andreas Wittmann
> Betreff: Re: [R] predict: remove columns with new levels automatically > > On Nov 24, 2009, at 2:24 PM, Andreas Wittmann wrote: > > > Dear R-users, > > > > in the follwing thread > > > > http://tolstoy.newcastle.edu.au/R/help/03b/3322.html > > > &g

Re: [R] predict: remove columns with new levels automatically

2009-11-24 Thread David Winsemius
On Nov 24, 2009, at 2:24 PM, Andreas Wittmann wrote: Dear R-users, in the follwing thread http://tolstoy.newcastle.edu.au/R/help/03b/3322.html the problem how to remove rows for predict that contain levels which are not in the model. now i try to do this the other way round and want to r

[R] predict: remove columns with new levels automatically

2009-11-24 Thread Andreas Wittmann
Dear R-users, in the follwing thread http://tolstoy.newcastle.edu.au/R/help/03b/3322.html the problem how to remove rows for predict that contain levels which are not in the model. now i try to do this the other way round and want to remove columns (variables) in the model which will be lat