Survey.jl icon indicating copy to clipboard operation
Survey.jl copied to clipboard

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

Open smishr opened this issue 2 years ago • 1 comments

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 avatar Feb 27 '23 08:02 smishr

@ayushpatnaikgit what do you think?

smishr avatar Feb 27 '23 08:02 smishr