*disclaimer
602969
effsize 効果量
- Torchiano M (2020). effsize: Efficient Effect Size Computation. doi: 10.5281/zenodo.1480624, R package version 0.8.1, https://CRAN.R-project.org/package=effsize.
https://github.com/mtorchiano/effsize
https://cran.r-project.org/web/packages/effsize/index.html
cliff.delta(d, ... )
- ノンパラメトリック
cohen.d(d, ...)
- パラメトリック
例
cohen.d(x, y)
- xとyは、ベクトル
- データがリストになっている場合は、unlist()でベクトルにしておかないとエラー
MDD2 <- SbyS.MDD %>% filter(Year=="2" & name=="MDD") %>% select(value) %>% na.omit() MDD3 <- SbyS.MDD %>% filter(Year=="3" & name=="MDD") %>% select(value) %>% na.omit() MDD4 <- SbyS.MDD %>% filter(Year=="JP" & name=="MDD") %>% select(value) %>% na.omit() MDD2 <- unlist(MDD2) MDD3 <- unlist(MDD3) MDD4 <- unlist(MDD4) cohen.d(MDD2, MDD3) Cohen's d d estimate: -0.2984519 (small) 95 percent confidence interval: lower upper -0.4023127 -0.1945910
https://sugiura-ken.org/wiki/