
Reporting estimate_contrasts
objects
Source: R/report.estimate_contrasts.R
report.estimate_contrasts.Rd
Create reports for estimate_contrasts
objects.
Usage
# S3 method for class 'estimate_contrasts'
report(x, ...)
# S3 method for class 'estimate_contrasts'
report_table(x, ...)
# S3 method for class 'estimate_contrasts'
report_text(x, table = NULL, ...)
Arguments
- x
Object of class
estimate_contrasts
.- ...
Arguments passed to or from other methods.
- table
Provide the output of
report_table()
to avoid its re-computation.
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(modelbased)
model <- lm(Sepal.Width ~ Species, data = iris)
contr <- estimate_contrasts(model)
#> We selected `contrast=c("Species")`.
report(contr)
#> The marginal contrasts analysis suggests the following. The difference between
#> versicolor and setosa is negative and statistically significant (difference =
#> -0.66, 95% CI [-0.79, -0.52], t(147) = -9.69, p < .001). The difference between
#> virginica and setosa is negative and statistically significant (difference =
#> -0.45, 95% CI [-0.59, -0.32], t(147) = -6.68, p < .001). The difference between
#> virginica and versicolor is positive and statistically significant (difference
#> = 0.20, 95% CI [ 0.07, 0.34], t(147) = 3.00, p = 0.003)