Open alexisdmacintyre opened 1 year ago
This is what I get with a reprex:
packageVersion("report")
#> [1] '0.5.9'
packageVersion("modelbased")
#> [1] '0.8.8'
library(modelbased)
library(report)
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)
Created on 2024-09-13 with reprex v2.1.1
Can you try updating report to the latest version? I just checked in the link to the other discussion you linked and support for estimate_contrast in report was only officially added from version 0.5.8, so the results you had was the previous behaviour before support was added.
Question and context Based on this documentation and discussion here, my understanding is that
report()
should return a little write-up summarising the results of anestimate_contrasts
object. However, when I try this with my fitted lmer model, I just get generic descriptive statistics. The same thing happens for me if I run the example from the documentation:The expected response (according to the documentation):
What I get:
I generated above using report 0.5.7 and modelbased 0.8.6 with R version 4.3.1 on Windows 10.