srvyr icon indicating copy to clipboard operation
srvyr copied to clipboard

svychisq in summarise after group_by

Open pholck opened this issue 2 years ago • 6 comments

Possibly not an issue and I'm being stupid...but don't see a way to have some attribute of svychisq (e.g. p.value) returned for each group_by selection (presumming the group_by generates a series of r x c tables) in the summarise. I would envision something like: svyobject %>% group_by(Response.1, Response.2) %>% summarise( test=svychisq(.)$p.test, prop = survey_prop() )

Again, apologies if I'm missing something.

pholck avatar Jan 22 '23 18:01 pholck