blob: 35a143f6ed44522a7f1b8a10641e48dc47161a24 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
context("Residuals extracted from mkinfit models")
test_that("Residuals are correctly returned", {
f <- fits[["FOMC", "FOCUS_C"]]
expect_equal(residuals(f)[1:3], c(-0.7748906, 2.7090589, -1.9451989))
expect_equivalent(
residuals(f, standardized = TRUE)[1:3],
c(-0.4171812, 1.4584875, -1.0472450), tolerance = 0.0001)
})
|