Description Usage Arguments Value Author(s) See Also Examples
View source: R/print.LFprediction.R
Prints predictions from a logic forest model.
1 2 |
x |
an object of class |
... |
other options are ignored. |
Returns a numeric vector of predicted classes for all observations in newdata
or the out-of-bag predictions for data used to construct the logic forest and a numeric vector of the proportion of trees in a logic forest that predict a class of one.
Bethany Wolf wolfb@musc.edu
1 2 3 4 5 6 7 | data(logforest.fit, LF.testdata)
#OOB prediction on original data
predict(logforest.fit)
#Prediction for new test data
predict(logforest.fit, newdata=LF.testdata[,1:50])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.