[R] Imputing data

khlam khlam at ucsc.edu
Fri Dec 2 23:16:24 CET 2011


So I have a very big matrix of about 900 by 400 and there are a couple of NA
in the list. I have used the following functions to impute the missing data

data(pc)
pc.na<-pc
pc.roughfix <- na.roughfix(pc.na)
pc.narf <- randomForest(pc.na, na.action=na.roughfix)


yet it does not replace the NA in the list.  Presently I want to replace the
NA with maybe the mean of the rows or columns or some type of correlation.

Any help would be appreciated. 

--
View this message in context: http://r.789695.n4.nabble.com/Imputing-data-tp4150041p4150041.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list