predict.uplift_glm | R Documentation |
Obtains predictions from a fitted uplift_glm
object.
## S3 method for class 'uplift_glm' predict(object, newdata = NULL, type = "uplift", na.action = na.omit, ...)
object |
A fitted object inheriting from |
newdata |
An optional set of data to predict on. If |
type |
The type of predictions required. Only |
na.action |
The method for handling missing data. |
... |
Additional arguments to be passed to other methods. |
A numeric vector of predictions for all methods, except when the model
was fitted using method = "glmnet"
, in which case the returned object
is a matrix of predictions for the entire sequence of the penalty parameter
used to create the model.
Leo Guelman leo.guelman@gmail.com
uplift_glm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.