pool_sd | R Documentation |
Calculate pooled sd.
pool_sd(x, group)
x |
(numeric vector) The data. |
group |
(vector) Group membership. |
#Wikipedia's example https://en.wikipedia.org/wiki/Pooled_variance
v_test_vals = c(31, 30, 29, 42, 41, 40, 39, 31, 28, 23, 22, 21, 19, 18, 21, 20, 19, 18, 17)
v_test_group = c(rep(1, 3), rep(2, 4), rep(3, 2), rep(4, 5), rep(5, 5))
pool_sd(v_test_vals, v_test_group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.