This is a method for the generic function predict
for class "l1ce", typically produced from
l1ce(). When newdata is missing, the
fitted values are extracted, otherwise returns new predictions.
Usage
## S3 method for class 'l1ce':
predict(object, newdata,
type = c("response"), se.fit = FALSE, ...)
Arguments
Value
a vector of predictions.
Warning
predict can produce incorrect predictions when the newdata
argument is used if the formula in object involves
transformations, such as poly(Age, 3) or sqrt(Age - min(Age)).