[R] rfImpute

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Wed Jun 25 03:42:59 CEST 2014


Read the Posting Guide (http://www.R-project.org/posting-guide.html) for this mailing list (one of the gems in there warns you to not post using HTML email)

Provide a reproducible example (e.g. per [1]) that includes the library/require statements that load your packages

Consider subscribing to the mailing list, as Nabble abuses the email quoting conventions that experienced R answerers expect. If you are really into the web forum thing, consider using the StackOverflow website.

(Re-)read the help file ?rfImpute, which says that the y argument cannot have NAs.

Consider specifying an appropriate subset argument to rfImpute

Disclaimer: I have never used this function or the package (randomForest) that it comes from. These are merely ideas that you might have come upon if you were a little more methodical.

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

On June 24, 2014 8:32:10 AM PDT, Julian Karch <karch at mpib-berlin.mpg.de> wrote:
>I am having the same problem
>trainImp <- rfImpute(train[,!colnames(train)=="score"],train$score)
>Error in randomForest.default(xf, y, ntree = ntree, ..., do.trace =
>  NA not permitted in predictors
>any ideas?
>View this message in context:
>Sent from the R help mailing list archive at Nabble.com.
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list