strengejacke / sjstats

Effect size measures and significance tests
https://strengejacke.github.io/sjstats
189 stars 21 forks source link

"new names" warnings with `dplyr 1.0.0` for `eta_sq` and `omega_sq` functions #98

Closed IndrajeetPatil closed 4 years ago

IndrajeetPatil commented 4 years ago
# for reproducibility
set.seed(123)

# model
mod <- stats::lm(formula = wt ~ am * cyl, data = mtcars)

# effect size
sjstats::eta_sq(mod, partial = FALSE, ci = 0.99)
#> New names:
#> * dat -> dat...1
#> * dat -> dat...2
#> * dat -> dat...3
#> * dat -> dat...4
#> * dat -> dat...5
#> * ...
#>     term etasq conf.low conf.high
#> 1     am 0.480    0.248     0.735
#> 2    cyl 0.243    0.040     0.455
#> 3 am:cyl 0.001   -0.022     0.035

sjstats::omega_sq(mod, partial = TRUE, ci = 0.99)
#> New names:
#> * dat -> dat...1
#> * dat -> dat...2
#> * dat -> dat...3
#> * dat -> dat...4
#> * dat -> dat...5
#> * ...
#>     term partial.omegasq conf.low conf.high
#> 1     am           0.598    0.361     0.866
#> 2    cyl           0.425    0.165     0.720
#> 3 am:cyl          -0.030   -0.145     0.134

Created on 2020-03-25 by the reprex package (v0.3.0.9001)

Session info ``` r sessioninfo::session_info() #> - Session info --------------------------------------------------------------- #> setting value #> version R Under development (unstable) (2020-02-28 r77874) #> os Windows 10 x64 #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate English_United States.1252 #> ctype English_United States.1252 #> tz Europe/Berlin #> date 2020-03-25 #> #> - Packages ------------------------------------------------------------------- #> package * version date lib #> assertthat 0.2.1 2019-03-21 [1] #> backports 1.1.5 2019-10-02 [1] #> bayestestR 0.5.2.1 2020-03-16 [1] #> boot 1.3-24 2019-12-20 [2] #> broom 0.5.3.9000 2020-03-01 [1] #> cli 2.0.2 2020-02-28 [1] #> coda 0.19-3 2019-07-05 [1] #> codetools 0.2-16 2018-12-24 [2] #> crayon 1.3.4 2017-09-16 [1] #> digest 0.6.25 2020-02-23 [1] #> dplyr 0.8.99.9002 2020-03-23 [1] #> effectsize 0.3.0 2020-03-22 [1] #> emmeans 1.4.5 2020-03-04 [1] #> estimability 1.3 2018-02-11 [1] #> evaluate 0.14 2019-05-28 [1] #> fansi 0.4.1 2020-01-08 [1] #> forcats 0.5.0 2020-03-01 [1] #> fs 1.3.2 2020-03-05 [1] #> generics 0.0.2 2018-11-29 [1] #> glue 1.3.2 2020-03-12 [1] #> haven 2.2.0 2019-11-08 [1] #> highr 0.8 2019-03-20 [1] #> hms 0.5.3 2020-01-08 [1] #> htmltools 0.4.0 2019-10-04 [1] #> insight 0.8.2.1 2020-03-22 [1] #> knitr 1.28 2020-02-06 [1] #> lattice 0.20-40 2020-02-19 [2] #> lifecycle 0.2.0.9000 2020-03-16 [1] #> lme4 1.1-22 2020-03-23 [1] #> magrittr 1.5 2014-11-22 [1] #> MASS 7.3-51.5 2019-12-20 [2] #> Matrix 1.2-18 2019-11-27 [2] #> minqa 1.2.4 2014-10-09 [1] #> modelr 0.1.6 2020-02-22 [1] #> multcomp 1.4-12 2020-01-10 [1] #> mvtnorm 1.1-0 2020-02-24 [1] #> nlme 3.1-144 2020-02-06 [2] #> nloptr 1.2.2.1 2020-03-11 [1] #> parameters 0.6.0 2020-03-12 [1] #> performance 0.4.4.1 2020-03-11 [1] #> pillar 1.4.3 2019-12-20 [1] #> pkgconfig 2.0.3 2019-09-22 [1] #> purrr 0.3.3 2019-10-18 [1] #> R6 2.4.1 2019-11-12 [1] #> Rcpp 1.0.4 2020-03-17 [1] #> reprex 0.3.0.9001 2020-03-25 [1] #> rlang 0.4.5.9000 2020-03-23 [1] #> rmarkdown 2.1 2020-01-20 [1] #> rstudioapi 0.11 2020-02-07 [1] #> sandwich 2.5-1 2019-04-06 [1] #> sessioninfo 1.1.1 2018-11-05 [1] #> sjlabelled 1.1.3 2020-01-28 [1] #> sjmisc 2.8.3 2020-01-10 [1] #> sjstats 0.17.9 2020-02-06 [1] #> statmod 1.4.34 2020-02-17 [1] #> stringi 1.4.6 2020-02-17 [1] #> stringr 1.4.0 2019-02-10 [1] #> styler 1.3.2.9000 2020-03-15 [1] #> survival 3.1-8 2019-12-03 [2] #> TH.data 1.0-10 2019-01-21 [1] #> tibble 2.99.99.9014 2020-03-25 [1] #> tidyr 1.0.2 2020-01-24 [1] #> tidyselect 1.0.0 2020-01-27 [1] #> vctrs 0.2.99.9010 2020-03-23 [1] #> withr 2.1.2 2018-03-15 [1] #> xfun 0.12 2020-01-13 [1] #> xtable 1.8-4 2019-04-21 [1] #> yaml 2.2.1 2020-02-01 [1] #> zoo 1.8-7 2020-01-10 [1] #> source #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (easystats/bayestestR@6ee7e37) #> CRAN (R 4.0.0) #> Github (tidymodels/broom@3c922d5) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (tidyverse/dplyr@35d3ace) #> Github (easystats/effectsize@6f4d5a3) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (easystats/insight@b46a9eb) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (r-lib/lifecycle@355dcba) #> Github (lme4/lme4@531c361) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (easystats/performance@913fee0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (tidyverse/reprex@a019cc4) #> Github (r-lib/rlang@a90b04b) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (r-lib/styler@24bad48) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (tidyverse/tibble@01d7686) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (r-lib/vctrs@3675fdf) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> #> [1] C:/Users/inp099/Documents/R/win-library/4.0 #> [2] C:/Program Files/R/R-devel/library ```
strengejacke commented 4 years ago

might be resolved with https://github.com/strengejacke/sjstats/commit/39b8bdf904760c0f387f4ff0248c65b45132e606, can you please check?

strengejacke commented 4 years ago

Should be resolved.