[R] rfImpute

Liaw, Andy andy_liaw at merck.com
Mon Aug 13 21:08:30 CEST 2007


I seem to recall that rfImpute() can sometimes come up with NAs at some
point in the iterations.  Could you please send me a (small) set of
data/code that reproduces the problem?

Andy

From: Eric Turkheimer
> 
> I am having trouble with the rfImpute function in the 
> randomForest package.
> Here is a sample...
> 
> clunk.roughfix<-na.roughfix(clunk)
> >
> > clunk.impute<-rfImpute(CONVERT~.,data=clunk)
> ntree      OOB      1      2
>   300:  26.80%  3.83% 85.37%
> ntree      OOB      1      2
>   300:  18.56%  5.74% 51.22%
> Error in randomForest.default(xf, y, ntree = ntree, ..., 
> do.trace = ntree,
> :
>         NA not permitted in predictors
> 
> So roughFix works, but rfImpute doesn't....
> 
> Thanks,
> Eric
>  ent3c *at* virginia.edu
> 
> -- 
> Eric Turkheimer, PhD
> Department of Psychology
> University of Virginia
> PO Box 400400
> Charlottesville, VA  22904-4400
> 
> 434-982-4732
> 434-982-4766 (FAX)
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
> 
> 
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}



More information about the R-help mailing list