xKDR / Survey.jl

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

Add tests for `ratio` #253

Open smishr opened 1 year ago

smishr commented 1 year ago

Currently very little testing for ratio method in ratio.jl.

sayantikaSSG commented 1 year ago

similar to R, the testing of survey ratio using apiclus2 and an equivalent design the answer to ratio estimation of api00 and enroll is coming out to be missing or NAN

smishr commented 1 year ago

@ayushpatnaikgit can you see in which cases ratio would return missing? @sayantikaSSG and I could not figure this out when debugging

sayantikaSSG commented 1 year ago

@ayushpatnaikgit can you see in which cases ratio would return missing? @sayantikaSSG and I could not figure this out when debugging

Please note that R also gives the answer as NAN. Also added a test for SRS in pull request #279