Code:
ranger(outcome~., data, num.trees=500, probability=TRUE)
Error: Missing data in columns
Is there a format that the data needs to be in? How to get past this error?
Code:
ranger(outcome~., data, num.trees=500, probability=TRUE)
Error: Missing data in columns
Is there a format that the data needs to be in? How to get past this error?
Copyright © 2021 Jogjafile Inc.
You need to remove NAs Example:
Other methods use packages like
mice
ormiceFast
to impute (fill NA). Other simple solution to impute the data with random data (from each column).