| interpret-calibration-methods | R Documentation |
These methods provide the standard print(), summary(), and plot()
interfaces for funcml_calibration objects returned by
interpret(method = "calibration").
## S3 method for class 'funcml_calibration'
plot(x, style = c("curve", "histogram"), ...)
## S3 method for class 'funcml_calibration'
print(x, digits = 4L, ...)
## S3 method for class 'funcml_calibration'
summary(object, digits = 4L, ...)
x |
A |
style |
Plot style: |
... |
Additional arguments passed to the underlying method. |
digits |
Number of digits numeric columns are rounded to when printed. |
object |
A |
plot() returns a ggplot2 object. print() returns the input
object invisibly. summary() returns a list with calibration curve and
summary diagnostics invisibly.
fit_obj <- fit(mpg > 20 ~ wt + hp + disp, data = mtcars, model = "glm")
cal <- interpret(
fit = fit_obj,
data = mtcars,
method = "calibration"
)
print(cal)
summary(cal)
plot(cal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.