Computes a weighted standard error of a vector or matrix.
weighted_se(x, w, na.rm)
A weighted variance.
A numeric vector or matrix. For matrix, standard errors are computed for each column
A numeric vector of non-negative weights. Will be automatically normalised to sum to one.
If TRUE
, NA
values in x
(and corresponding weights in w
) are
omitted from the computation. Default is FALSE
.