I use the R-packages survey and srvyr in combination with dplyr to analyse survey data. However, when I try to calculate confidence intervals for groups`(see code below), I get the error 'group_by_drop_default' is not an exported object from 'namespace:dplyr'
Thanks for any help regarding this error or calculating confidence intervals of groups in the survey framework in general.
as_survey_design(strata = strata, weight = weight_pers, id= hh_id, nest=TRUE)
out <- strat_design %>%
group_by(sex, year) %>%
summarize( var_mean= survey_mean(var1, vartype = "ci"),
n = unweighted(n()))```