AndriSignorell / DescTools

Tools for Descriptive Statistics and Exploratory Data Analysis
http://andrisignorell.github.io/DescTools/
82 stars 18 forks source link

Missing sqrt in von Neumann z statistic #126

Closed LukeAFullard closed 7 months ago

LukeAFullard commented 10 months ago

Hello, I think you may have missed taking the square root of the variance in the calculation of the z-statistic in the von Neumann test in the unbiased case.

https://github.com/cran/DescTools/blob/master/R/Tests.r Line 1321 z <- (VN - Ex) / Vx

Should be

z <- (VN - Ex) / sqrt(Vx)

AndriSignorell commented 8 months ago

This has been fixed in DescTools 0.99.50.4, thanx for reporting!