Summarise for tbl_svy objects accepts several specialized functions.
Each of the functions a variable (or two, in the case of
survey_ratio), from the data.frame and default to providing the measure
and its standard error.
The argument vartype can choose one or more measures of uncertainty,
se for standard error, ci for confidence interval, var
for variance, and cv for coefficient of variation. level
specifies the level for the confidence interval.
The other arguments correspond to the analagous function arguments from the
survey package.
The available functions from srvyr are:
survey_meanCalculate the survey mean of the entire population or by groups.
Based on svymean.
survey_totalCalculate the survey total of the entire population or by groups.
Based on svytotal.
survey_ratioCalculate the ratio of 2 variables in the entire population or by groups.
Based on svyratio.
survey_quantileCalculate quantiles in the entire population or by groups. Based on
svyquantile.
survey_medianCalculate the median in the entire population or by groups.
svyquantile.
unweightedCalculate an unweighted estimate as you would on a regular tbl_df.
Based on dplyr's summarise.