-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f7002b
commit b159c94
Showing
51 changed files
with
2,253 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
Package: bsts | ||
Date: 2019-09-01 | ||
Version: 0.9.5 | ||
Date: 2020-04-29 | ||
Title: Bayesian Structural Time Series | ||
Author: Steven L. Scott <[email protected]> | ||
Maintainer: Steven L. Scott <[email protected]> | ||
Description: Time series regression using dynamic linear models fit using | ||
MCMC. See Scott and Varian (2014) <DOI:10.1504/IJMMNO.2014.059942>, among many | ||
other sources. | ||
Depends: BoomSpikeSlab (>= 1.2.1), zoo, xts, Boom (>= 0.9.2), R(>= | ||
3.4.0) | ||
Depends: BoomSpikeSlab (>= 1.2.3), zoo (>= 1.8), xts, Boom (>= 0.9.6), | ||
R(>= 3.4.0) | ||
Suggests: testthat | ||
LinkingTo: Boom (>= 0.9.2) | ||
Version: 0.9.2 | ||
LinkingTo: Boom (>= 0.9.6) | ||
License: LGPL-2.1 | file LICENSE | ||
Encoding: UTF-8 | ||
NeedsCompilation: yes | ||
Packaged: 2019-09-04 15:04:45 UTC; stevescott | ||
Packaged: 2020-05-01 14:24:35 UTC; steve | ||
Repository: CRAN | ||
Date/Publication: 2019-09-22 17:40:02 UTC | ||
Date/Publication: 2020-05-02 15:00:02 UTC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
library(testthat) | ||
library(bsts) | ||
library(Boom) | ||
|
||
test_check("bsts") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
library(bsts) | ||
library(testthat) | ||
|
||
test_that("AutoAr does not crash on minimal data.", { | ||
y <- rnorm(4) | ||
ss <- AddAutoAr(list(), y=y, lags = 4) | ||
|
||
for (i in 1:20) { | ||
model <- bsts(y, ss, niter = 100, ping = -1) | ||
} | ||
expect_true(inherits(model, "bsts")) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
holiday <- NamedHoliday("MemorialDay", days.before = 2, days.after = 2) | ||
timestamps <- seq.Date(from = as.Date("2001-01-01"), by = "day", | ||
length.out = 365 * 10) | ||
|
||
influence <- DateRange(holiday, timestamps) | ||
|
||
test_that("DateRange returns a two-column data frame of dates", { | ||
expect_that(influence, is_a("data.frame")) | ||
expect_that(ncol(influence), equals(2)) | ||
expect_that(influence[, 1], is_a("Date")) | ||
expect_that(influence[, 2], is_a("Date")) | ||
expect_true(all(influence[, 1] <= influence[, 2])) | ||
}) |
Oops, something went wrong.