Description Usage Arguments Details
Safe predictions from a generalized linear model
1 2 3 4 | ## S3 method for class 'glm'
safe_predict(object, new_data, type = c("link", "conf_int",
"response", "class", "prob"), ..., std_error = FALSE, level = 0.95,
threshold = 0.5)
|
object |
A |
new_data |
TODO |
type |
What kind of predictions to return. Which predictions are
available depends on the family of
Default is |
... |
Unused. |
std_error |
Logical indicating whether or not calculate standard
errors for the fit at each point. Not available for all models, and can
be computationally expensive to compute. The standard error is always
the standard error for the mean, and never the standard error for
predictions. Standard errors are returned in a column called |
level |
A number strictly between |
threshold |
A number between |
For GLMs, standard errors can only be calculated when
type = "link"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.