View source: R/report.compare_performance.R
report.compare_performance | R Documentation |
Create reports for model comparison as obtained by the
performance::compare_performance()
function in the performance
package.
## 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, ...)
x |
Object of class |
... |
Arguments passed to or from other methods. |
table |
Provide the output of |
An object of class report()
.
Specific components of reports (especially for stats models):
report_table()
report_parameters()
report_statistics()
report_effectsize()
report_model()
report_priors()
report_random()
report_performance()
report_info()
report_text()
Other types of reports:
report_system()
report_packages()
report_participants()
report_sample()
report_date()
Methods:
as.report()
Template file for supporting new models:
report.default()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.