pred | R Documentation |
Generic function that returns predicted outcomes from lm
, glm
, gbm
, wbart
,
and pbart
objects with new data.
pred(object, newdata, ...)
## S3 method for class 'lm'
pred(object, newdata, ...)
## S3 method for class 'glm'
pred(object, newdata, ...)
## S3 method for class 'gbm'
pred(object, newdata, method = "OOB", ...)
## S3 method for class 'pbart'
pred(object, newdata, ...)
## S3 method for class 'wbart'
pred(object, newdata, ...)
object |
a fitted model object, which can be of class |
newdata |
a data frame containing predictor variables. |
... |
additional arguments passed to the |
method |
Method used to determine the optimal number of boosting iterations for |
a vector of expected outcomes for newdata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.