dot-predict: Predict classification of new patients using the forests of...

.predictR Documentation

Predict classification of new patients using the forests of our different data sources.

Description

For classification, we sum the votes from all the forests,

Usage

.predict(forests, testData)

Arguments

forests:

a list of randomForest objects.

testData:

[data frame] new data to classify using the forests. It must have at least the columns in 'expl_vars'. (We want to predict the value of 'dep_var' for it.)

Value

a vector of length 'nrow(testData)'.


sib-swiss/dsSwissKnife documentation built on Nov. 27, 2024, 6:03 p.m.