mtorchiano / effsize

Effsize - a package for efficient effect size computation
GNU General Public License v2.0
104 stars 11 forks source link

The confidence interval does not contain the point estimation value. #38

Open jiangyingda opened 5 years ago

jiangyingda commented 5 years ago

Version Found In 0.7.6 https://cran.r-project.org/web/packages/effsize/effsize.pdf

Date 2019-07-17

Steps to Reproduce testData.txt

  1. Read in the textData.txt into R. I am using R 3.6.1.
  2. Assign the following command: alpha <- 0.01 cohen.d(d = X, f = Y, pooled = TRUE, paired = TRUE, hedges.correction = FALSE, conf.level = 1-alpha, noncentral = TRUE)

Current Behavior I got the following results based on my testing: Cohen's d

d estimate: -1.237032 (large) 99 percent confidence interval: lower upper -1.0447818 -0.7636336

The confidence interval did not contain the point estimation.

Expected Behavior If I did not misunderstand, at least -1.23 should be contained in the confidence limits.

mtorchiano commented 4 years ago

Sorry for the delay, I looked into your report today.

I cannot reproduce it. Apparently the factor should be X and not Y, still it has 3 different levels.