Skip to main content
hermo's user avatar
hermo's user avatar
hermo's user avatar
hermo
  • Member for 11 years, 6 months
  • Last seen more than 2 years ago
  • Finland
awarded
comment
Prediction with randomForest (R) when some inputs have missing values (NA)
This is indeed a good in-built imputation solution for applications where imputation can be run on larger prediction set (>> 1 sample). From the randomForest documentation of na.roughfix: "A completed data matrix or data frame. For numeric variables, NAs are replaced with column medians. For factor variables, NAs are replaced with the most frequent levels (breaking ties at random). If object contains no NAs, it is returned unaltered."
revised
Loading…
awarded
awarded
awarded
awarded
Loading…
awarded
awarded
awarded
awarded
revised
Loading…
Loading…
awarded
Loading…
awarded
Loading…