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)
#> No variable was specified for contrast estimation. Selecting `contrast =
#> "
#> Species
#> "`.
report(contr)
#> The marginal contrasts analysis suggests the following. The difference between
#> setosa and versicolor is positive and statistically significant (difference =
#> 0.66, 95% CI [ 0.49, 0.82], t(147) = 9.69, p < .001). The difference between
#> setosa and virginica is positive and statistically significant (difference =
#> 0.45, 95% CI [ 0.29, 0.62], t(147) = 6.68, p < .001). The difference between
#> versicolor and virginica is negative and statistically significant (difference
#> = -0.20, 95% CI [-0.37, -0.04], t(147) = -3.00, p = 0.003)