-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CI/SE, fix quantile
for StratifiedSample
#87
Comments
Will look into this in next few days |
The current In R: `library(survey)
dstrat = svydesign(id=~1, strata=~stype,fpc = ~fpc, data=apisrs)
But in Julia (after modifying the printing layout to be like R): julia> srs = SimpleRandomSample(apisrs;popsize=:fpc); julia> quantile(:enroll, srs, [0.1,0.2,0.5,0.75,0.95]) julia> strat = load_data("apistrat"); julia> dstrat = StratifiedSample(strat, :stype; popsize=:fpc); julia> quantile(:enroll, dstrat, [0.1,0.2,0.5,0.75,0.95]) Which means currently, only the median (0.5th qauntile) is coming correctly for https://docs.julialang.org/en/v1/stdlib/Statistics/#Statistics.quantile |
Further, R returns the CIs (default alpha = 0.05) and SE by default. This option should be investigated. |
svyquantile
hasn't been updated in a whilequantile
for new survey designs
For now, quantile with |
Also, CI/SE havent been implemented yet |
quantile
for new survey designsquantile
for StratifiedSample
See #130 as well |
We have stopped creating domain-specific functions like |
We made a lot of changes to the design lately but
svyquantile
was not tested. @sayantikaSSG can you write some tests forsvyquantile
? And maybe @smishr can take a look at the source code and update it.The text was updated successfully, but these errors were encountered: