MaaniBeigy / cvcqv

Coefficient of Variation (CV) and Coefficient of Quartile Variation (CQV) with Confidence Intervals (CI)
GNU General Public License v3.0
10 stars 3 forks source link

[Bug]Wrong formula for CV CI Vangel method? #2

Closed rpahl closed 3 years ago

rpahl commented 3 years ago

Hi,

you may have a small error in your formula that is computing the CI of the CV according to Vangel: From your code: lower.tile.vangel <- cv/sqrt(((u1 + 1)/(v + 1) - 1 )*(cv^2) + u1/v)

I think, instead it needs to be u1 + 2, i.e.: lower.tile.vangel <- cv/sqrt(((u1 + 2)/(v + 1) - 1 )*(cv^2) + u1/v)

The same happens in the upper limit.

Best regards, Roman

MaaniBeigy commented 3 years ago

Hi @rpahl, Thanks for your issue. You are right :ok_hand:. It means a lot to me to receive feedback from the community. It seems that my library has been useful : :relaxed: and encourages me to improve it :+1: .
I will correct it in the upcoming release (:package: v1.1). Best Regards, Maani

rpahl commented 3 years ago

Glad I could help :) Keep it going 👌