kurtosis, skewness, start with ML

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-07-08 22:14:55 +02:00
1 parent c768ba0d9c
commit 14b990d769
18 files changed
+401 -15

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
context("kurtosis.R")
test_that("kurtosis works", {
expect_equal(kurtosis(septic_patients$age),
6.423118,
tolerance = 0.00001)
expect_equal(unname(kurtosis(data.frame(septic_patients$age))),
6.423118,
tolerance = 0.00001)
expect_equal(kurtosis(matrix(septic_patients$age)),
6.423118,
tolerance = 0.00001)
})