Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in model_parameters.aov plot() method? #286

Open
jmgirard opened this issue May 21, 2023 · 2 comments
Open

Error in model_parameters.aov plot() method? #286

jmgirard opened this issue May 21, 2023 · 2 comments
Labels
Bug 🐛 Something isn't working

Comments

@jmgirard
Copy link

jmgirard commented May 21, 2023

Perhaps the intention is to have people use lm() not aov() but perhaps the error message can be updated.

library(easystats)
#> # Attaching packages: easystats 0.6.0.9
#> ✔ bayestestR  0.13.1      ✔ correlation 0.8.4    
#> ✔ datawizard  0.7.1.6     ✔ effectsize  0.8.3.11 
#> ✔ insight     0.19.1.12   ✔ modelbased  0.8.6.3  
#> ✔ performance 0.10.3.3    ✔ parameters  0.21.0.2 
#> ✔ report      0.5.7.4     ✔ see         0.7.5.5
x <- aov(Sepal.Length ~ Species, data = iris)
mp <- model_parameters(x)
plot(mp)
#> Error in `$<-.data.frame`(`*tmp*`, "Estimate_CI", value = character(0)): replacement has 0 rows, data has 2

y <- lm(Sepal.Length ~ Species, data = iris)
mp2 <- model_parameters(y)
plot(mp2)

Created on 2023-05-21 with reprex v2.0.2

@jmgirard jmgirard changed the title Error in model_parameters plot() method? Error in model_parameters.aov plot() method? May 21, 2023
@strengejacke strengejacke added the Bug 🐛 Something isn't working label May 23, 2023
@strengejacke
Copy link
Member

We should "disable" plot for Anova objects, as they probably don't contain any useful information to plot?

@bwiernik
Copy link
Contributor

We could also change the behavior of model_parameters() for them to show the same results as lm?

And maybe make a new function for generating ANOVA tables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants