as_survey_design - SE --> 95% CI

Hi - interested in converting the below --> a 95% CI. Any advice?

> my_des %>%
>   group_by(awards) %>%
>   summarize(proportion=survey_mean(),
>             total=survey_total())
> #> # A tibble: 2 x 5
> #>   awards proportion proportion_se total total_se
> #>   <fct>       <dbl>         <dbl> <dbl>    <dbl>
> #> 1 No           0.38        0.0344 2354.     213.
> #> 2 Yes          0.62        0.0344 3840.     213.

You can do the following:

 my_des %>%
   group_by(awards) %>%
   summarize(proportion=survey_mean(vartype="ci", level=.95),
             total=survey_total(vartype="ci", level=.95))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.