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

"object_name" attribute missing for ANOVA-like outputs #624

Closed
mattansb opened this issue Oct 24, 2021 · 2 comments
Closed

"object_name" attribute missing for ANOVA-like outputs #624

mattansb opened this issue Oct 24, 2021 · 2 comments
Labels
Bug 🐛 Something isn't working Consistency 🍏 🍎 Expected output across functions could be more similar

Comments

@mattansb
Copy link
Member

mod <- aov(mpg ~ factor(cyl) + am, mtcars)
mp <- parameters::model_parameters(mod)
attr(mp, "object_name", exact = TRUE)  
#> NULL


mod_aov <- anova(mod)
mp <- parameters::model_parameters(mod_aov)
attr(mp, "object_name", exact = TRUE)  
#> NULL


mod_car <- car::Anova(mod)
mp <- parameters::model_parameters(mod_car)
attr(mp, "object_name", exact = TRUE)  
#> NULL


mod <- lme4::lmer(mpg ~ factor(cyl) + (1|gear), mtcars)
#> boundary (singular) fit: see ?isSingular
mod_aov <- anova(mod)
mp <- parameters::model_parameters(mod_aov)
attr(mp, "object_name", exact = TRUE)  
#> NULL


mod <- lmerTest::lmer(mpg ~ factor(cyl) + (1|gear), mtcars)
#> boundary (singular) fit: see ?isSingular
mod_aov <- anova(mod)
mp <- parameters::model_parameters(mod_aov)
attr(mp, "object_name", exact = TRUE)  
#> NULL

Possibly more...


This is required for the new effectsize API easystats/effectsize#391

@mattansb mattansb added Bug 🐛 Something isn't working Consistency 🍏 🍎 Expected output across functions could be more similar labels Oct 24, 2021
@strengejacke
Copy link
Member

mod <- aov(mpg ~ factor(cyl) + am, mtcars)
mp <- parameters::model_parameters(mod)
attr(mp, "object_name", exact = TRUE)  
#> [1] "mod"


mod_aov <- anova(mod)
mp <- parameters::model_parameters(mod_aov)
attr(mp, "object_name", exact = TRUE)  
#> [1] "mod_aov"


mod_car <- car::Anova(mod)
mp <- parameters::model_parameters(mod_car)
attr(mp, "object_name", exact = TRUE)  
#> [1] "mod_car"


mod <- lme4::lmer(mpg ~ factor(cyl) + (1|gear), mtcars)
#> boundary (singular) fit: see ?isSingular
mod_aov <- anova(mod)
mp <- parameters::model_parameters(mod_aov)
attr(mp, "object_name", exact = TRUE)  
#> [1] "mod_aov"


mod <- lmerTest::lmer(mpg ~ factor(cyl) + (1|gear), mtcars)
#> boundary (singular) fit: see ?isSingular
mod_aov <- anova(mod)
mp <- parameters::model_parameters(mod_aov)
attr(mp, "object_name", exact = TRUE)  
#> [1] "mod_aov"

Created on 2021-10-24 by the reprex package (v2.0.1)

@mattansb
Copy link
Member Author

PrayingCatGIF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working Consistency 🍏 🍎 Expected output across functions could be more similar
Projects
None yet
Development

No branches or pull requests

2 participants