predict.LBoost: Prediction of Response Using LBoost

Description Usage Arguments Value Author(s) See Also Examples

View source: R/predict.LBoost.R

Description

Computes predicted values for newdata for as LBoost model fitted using LBoost.

Usage

1
2
## S3 method for class 'LBoost'
predict(object, newdata, ...)

Arguments

object

an object of class LBoost.

newdata

a matrix or data frame containing new predictor values. If not given, predictions will be made for the original data used to construct the model.

...

not currently used.

Value

If new data are given, predict returns an object of class "LBoost.prediction", that includes a list of elements

prediction

a numeric vector of predicted responses.

weighted.prop

a numeric vector of the weighted proportion of trees in the forest that predict a class value of one.

If no new data are given, the function returns the LBoost model prediction for the original data.

Author(s)

Bethany Wolf wolfb@musc.edu

See Also

LBoost

Examples

1
2
3
4
5
6
7
8
data(LF.data, LF.testdata, LBoost.fit)


#NOTE- this is the LBoost model prediction for the original data
predict(object=LBoost.fit)

#predicting classes for new test data
predict(object=LBoost.fit, newdata=LF.testdata[,1:50])

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