sd_rs | R Documentation |
Calculate standard deviation for each location under each regime.
sd_rs(x, label)
x |
A |
label |
A vector of regime labels. Its length must be the same as
the number rows in |
A list of standard deviations for each regime.
set.seed(123)
x <- matrix(rnorm(200), nrow = 100)
label <- sample(1:2, 100, replace = TRUE)
sd_rs(x, label = factor(label))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.