print.LFprediction: Prints Logic Forest Prediction Output

Description Usage Arguments Value Author(s) See Also Examples

View source: R/print.LFprediction.R

Description

Prints predictions from a logic forest model.

Usage

1
2
## S3 method for class 'LFprediction'
print(x, ...) 

Arguments

x

an object of class LF.prediction.

...

other options are ignored.

Value

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.

Author(s)

Bethany Wolf wolfb@musc.edu

See Also

predict.logforest

Examples

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])

LogicForest documentation built on May 30, 2017, 3:07 a.m.