[R] can predict ignore rows with insufficient info
pete at sprint.net
Tue Sep 16 21:15:34 CEST 2003
On Tue, Sep 16, 2003 at 11:44:02AM -0500, Peter Whiting wrote:
> I'm not sure how to identify the cities in nconst that are not
> modeled by g (my actual model has many more predictors in the
I guess I could use some form of
over and over again for each factor...
as usual, there has to be a better way.
> Is there a way to instruct predict to only predict the
> rows for which it has enough information and not complain about
> the others?
> x<-predict(g,nconst) ## the rows of x with city=ALBANY will be NA
> R-help at stat.math.ethz.ch mailing list
More information about the R-help