xKDR / Survey.jl

Analysis of complex surveys
https://xkdr.github.io/Survey.jl/
GNU General Public License v3.0
50 stars 19 forks source link

Allow `fpc` argument in the constructor and implement finite population correction #284

Open smishr opened 1 year ago

smishr commented 1 year ago

TODO

ayushpatnaikgit commented 1 year ago

Implement finite population correction like in R. Read Lohr on this.

ayushpatnaikgit commented 1 year ago

The formula is

FPC = sqrt[(N - n)/(N - 1)]

Where:

N is the population size
n is the sample size

But the issue is that the population and sample size is different for each stratum. For JKn, you can multiply FPC for each strata because you do the summation. Not sure how to do it for bootstrap. Start with JKn.