sur_mean | R Documentation |
Calculate the survey weighted mean of an object
Calculate the mean from a normal survey
calculate the mean for a replicate survey
mean for a admin dataset
sur_mean(x, ...)
## Default S3 method:
sur_mean(x, na.rm = T, as_list = FALSE, sv, ids, st, ...)
## S3 method for class 'factor'
sur_mean(x, na.rm = T, as_list = FALSE, sv, ids, st, ...)
## S3 method for class 'character'
sur_mean(x, ...)
surdes_mean(x, ids, sv)
repdes_mean(x, ids, sv)
admin_mean(x)
x |
vector. Variable to compute a mean |
... |
unused |
na.rm |
logical. Determines whether NA values will be omitted from the analysis |
as_list |
logical. Determines whether the result should returned as a list– mostly for factors |
sv |
data.table. Survey vars data.table |
ids |
numeric. vector of indices to operate on |
st |
character. survey type |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.