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

`CategoricalArrays` ("Factor") variables support for population proportions and counts #268

Open smishr opened 1 year ago

smishr commented 1 year ago

In R survey, population proportions and counts are calculated using mean and total respectively. Previously in Survey.jl we followed this approach, which can be seen in AnalyticalSolution branch.

I am wondering if a more "Julian" approach would be to have prop and count (fn name could be different) functions separately? This way we dont clutter mean and total estimators too much with extra if-else ladders or methods, and have clean work for prop and count specific functionalities.

Thoughts?

See #52 for previous discussion on categorical arrays

smishr commented 1 year ago

@ayushpatnaikgit what do you think?