Function to calculate weighted standard deviation.

weighted.sd(x, w, na.rm = FALSE)

Arguments

x

The observations to calculate the standard deviations from

w

The weights associated with each observation.

na.rm

If TRUE, then NA values will be removed.