foretell | R Documentation |
Te default precict
function doesn't always return the
predicted variable by default. For example, when estimating
a binomial model using glm
, by default the
log-odds are returned. foretell
wraps predict
while
setting options so that the actual predicted value is returned.
foretell(object, ...) ## Default S3 method: foretell(object, ...) ## S3 method for class 'glm' foretell(object, newdata = NULL, type, ...) ## S3 method for class 'rpart' foretell(object, newdata, type, ...)
object |
A model object,( |
... |
Furher arguments passed to |
newdata |
|
type |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.