Description Usage Arguments Value Author(s) See Also Examples
View source: R/predict.LBoost.R
Computes predicted values for newdata for as LBoost model fitted using LBoost
.
1 2 |
object |
an object of class |
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. |
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.
Bethany Wolf wolfb@musc.edu
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])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.