View source: R/repest_auxiliaries.R View source: R/weighted_variance.R
weighted.var | R Documentation |
Computes the weighted variance of a numeric vector.
weighted.var(x, w, na.rm = TRUE)
x |
(numeric vector) Variable of interest for which to compute the variance |
w |
(numeric vector) Vector with weights |
na.rm |
(bool) if TRUE: Excludes missing values before computing the variance |
Scalar containing the variance
data(df_talis18)
weighted.var(df_talis18$TT3G02, df_talis18$TRWGT1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.