View source: R/sur_uncertainty.R
sur_var | R Documentation |
Calculate the variance/covariance matrix for a survey statistic
sur_var(
x,
na.rm = T,
type = "mean",
as_list = TRUE,
svyrep_attributes,
sv,
ids,
st
)
x |
vector of data |
na.rm |
logical. If TRUE, omit NAs |
type |
character. One of 'mean' or 'total' depending on the scale of statistic |
as_list |
logical. Return values as list |
svyrep_attributes |
list. List of attributes relevant to replicate design surveys |
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.