Description Usage Arguments Value Examples
Computes the standard deviation of values in x using weights.
1 | weighted.sd(x, w = rep(1, length(x)), df = sum(w) - 1)
|
x |
numeric vector of data |
w |
numeric vector of weights |
df |
degrees of freedom |
scalar value
1 2 3 | x <- c(1.5, 4.1, 3.7, 8.2)
w <- c(4, 5, 4, 1)
weighted.sd(x, w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.