Nothing
mu <- rep(0, 3)
sigma <- matrix(c(1, 0.6, 0.2, 0.6, 1, 0.3, 0.2, 0.3, 1), nrow = 3)
x <- as.matrix(rmcd(100000, mu, sigma))
apply(x, 2, median)
scal <- numeric(nrow(x))
for (i in 1:length(scal)) {
scal[i] <- x[i, , drop = FALSE] %*% solve(sigma) %*% t(x[i, , drop = FALSE])
}
test_that("rmcd works", {
expect_equal(
round(apply(x, 2, median), 1),
mu
)
expect_equal(
round(mean(log(1 + scal)), 1),
round(digamma(0.5 + 3/2) - digamma(0.5), 1)
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.