report.compare_performance {report} | R Documentation |
Reporting models comparison
Description
Create reports for model comparison as obtained by the
performance::compare_performance()
function in the performance
package.
Usage
## S3 method for class 'compare_performance'
report(x, ...)
## S3 method for class 'compare_performance'
report_table(x, ...)
## S3 method for class 'compare_performance'
report_statistics(x, table = NULL, ...)
## S3 method for class 'compare_performance'
report_parameters(x, table = NULL, ...)
## S3 method for class 'compare_performance'
report_text(x, table = NULL, ...)
Arguments
x |
Object of class |
... |
Arguments passed to or from other methods. |
table |
Provide the output of |
Value
An object of class report()
.
See Also
Specific components of reports (especially for stats models):
Other types of reports:
Methods:
Template file for supporting new models:
Examples
library(report)
library(performance)
m1 <- lm(Sepal.Length ~ Petal.Length * Species, data = iris)
m2 <- lm(Sepal.Length ~ Petal.Length + Species, data = iris)
m3 <- lm(Sepal.Length ~ Petal.Length, data = iris)
x <- performance::compare_performance(m1, m2, m3)
r <- report(x)
r
summary(r)
as.data.frame(r)
summary(as.data.frame(r))
# Specific reports
report_table(x)
report_statistics(x)
report_parameters(x)
[Package report version 0.5.9 Index]