srvyr
srvyr copied to clipboard
svychisq in summarise after group_by
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.