Let's say I have a survey question on political party affiliation - Democrat, Republican, Independent, Other. I want to test whether the weighted proportions are equal.
I cannot use Base R functions because they don't take account of sampling weights in the calculation of variance.
I have tried svychisq() but that only works for testing for association between two variables.