rpruim / fastR2

Foundations and Applications of Statistics: An Introduction Using R
13 stars 10 forks source link

Wilson CI or Wald CI #15

Open nolankev opened 1 year ago

nolankev commented 1 year ago

Hi - just want to check if the wilson.ci() function returns Wilson score method? It looks like the plus-4 adjustment to Wald (aka "normal approximation" aka "asymptotic" method).

The Wilson method is discussed by Agresti (1998) "Approximate is Better than Exact for Interval Estimation of Binomial Proportions", The American Statistician. Link here: https://math.unm.edu/~james/Agresti1998.pdf. There is also an adjustment for cases where x (number of successes)=1 or x=n-1, see last paragraph of section 4.