View source: R/sur_uncertainty.R
sur_ci | R Documentation |
Calculate confidence interval
sur_ci(
a,
b = "sur_mean",
ab_type = "raw",
ci_part = "both",
ci_method = "mean",
level = 0.95,
use_df = T,
denom,
na.rm = T,
sv,
ids,
st
)
a |
Either the result of sur_mean or sur_total OR a vector of data to compute a function over |
b |
Either a vcov matrix from sur_var OR one of 'sur_total' or 'sur_mean' |
ab_type |
character. One of "agg" or "raw". If agg, ‘a' is the result and 'b' is the corresponding vcov matrix. If ’raw', 'a' is the vector to compute 'b' on (e.g. 'b'('a')) |
ci_part |
character. One of 'lower', 'upper', 'both'. Determines what part of the ci should be returned |
ci_method |
character. Name of the method by which the ci should be calculated. See details for more information. |
level |
numeric. 0 - 1, confidence level to return for ci |
use_df |
logical |
denom |
numeric. Only useful/used when ci_method == 'unweighted_binary'. Denominator (or N) for prop.test |
na.rm |
logical. Passed to ‘b' when 'ab_type' = ’raw' |
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.