Bayesian Structural Time Series
5packages dependsuggested by 2
44.7Kdownloads / year
–test coverage
13/13flavors OK
Overview
About
Maintained by Steven L. ScottCRAN page ↗
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.
Install
Health
CRAN checks
13OK
Slowest check: 7.4 min · r-devel-windows-x86_64
Status changes
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-30
- NOTE12 OK, 1 NOTE2026-07-29
- OK13 OK2026-06-09
Show 5 earlier changesHide 5 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-22
- ERROR12 OK, 1 ERROR2026-05-21
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-03-10
Advisories
Documentation
In release 0.9.11
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
- Help pages
- 71includes a package overview page
- Examples that run
- 94%48 run in a plain check · 3 never run
- Exported functions with examples
- 74%
- Documented parameters
- 87%
- Return-value docs
- 90%
- Help pages citing references
- 34%
Downloads
44.7K
CRAN downloads in the past year
Rank #1,531 · ~123/day · ~3.7K/mo
Daily download trend is not available in this view yet.
6.5K30 days
15.7K90 days
44.7K1 year
Also on2.2K r2u25 autocran9.8K conda_forge643 c2d4u
Dependencies
Declared dependencies
6 external dependencies (excludes base and recommended)
Installing bsts adds 4 packages (4 with compiled code, 3.7 MB of source tarballs). Heaviest: Boom 2.5 MB, zoo 675 KB, xts 470 KB.
Depends (5)
R >= 4.5.0BoomSpikeSlabzooxtsBoom
Imports (0)
none
LinkingTo (1)
Suggests (1)
Enhances (0)
none
Reverse dependencies
5direct
1indirect
Depends 1 · Imports 4
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first
Code & Tests
Datasets
People & History
People (1)
Author, Maintainer since 0.5.1 (2014)
Listed in earlier versions (1)
Scott
no longer listed · 0.9.11
Releases (20)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.9.11Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.9.102024-01-17 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.9.92022-11-07 · diff ↗
- 0.9.82022-05-30 · diff ↗ ·
added 5 exports
mbsts, plot.mbsts, plot.mbsts.prediction, predict.mbsts, PlotMbstsSeriesMeans - RR 4.2.0 released · 2022-04-22
- 0.9.7
- RR 4.1.0 released · 2021-05-18
- 0.9.62021-04-07 · diff ↗
- 0.9.52020-05-02 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.9.22019-09-22 · diff ↗
- 0.9.1
Show 17 earlier eventsHide 17 earlier events
- 0.9.02019-05-22 · diff ↗ ·
added 8 exports
AddSharedLocalLevel, dirm, DirmModelOptions, DynamicRegressionArOptions, DynamicRegressionHierarchicalRandomWalkOptions, DynamicRegressionRandomWalkOptions, LongToWide, WideToLong - RR 3.6.0 released · 2019-04-26
- 0.8.02018-05-07 · diff ↗ ·
removed 6 exports
AddFixedDateHoliday, AddLastWeekdayInMonthHoliday, AddNamedHolidays, AddNthWeekdayInMonthHoliday, NamedHolidays, PlotHolidaysadded 24 exports
AcfDist, AddHierarchicalRegressionHoliday, AddMonthlyAnnualCycle, AddRandomWalkHoliday, AddRegressionHoliday, AddStaticIntercept, DateRange, DateRangeHoliday, DateToPOSIX, DayPlot, FixedDateHoliday, LastWeekdayInMonthHoliday, MaxWindowWidth, MaxWindowWidth.default, MaxWindowWidth.DateRangeHoliday, MonthPlot, NamedHoliday, named.holidays, NthWeekdayInMonthHoliday, PlotHoliday, qqdist, weekday.names, YearMonToPOSIX, YearPlot - RR 3.5.0 released · 2018-04-23
- 0.7.1
- RR 3.4.0 released · 2017-04-21
- 0.7.02017-04-11 · diff ↗ ·
removed 1 export
pattern:^[^\\.]added 69 exports
AddAr, AddAutoAr, AddDynamicRegression, AddFixedDateHoliday, AddGeneralizedLocalLinearTrend, AddLastWeekdayInMonthHoliday, AddLocalLevel, AddLocalLinearTrend, AddNamedHolidays, AddNthWeekdayInMonthHoliday, AddSeasonal, AddSemilocalLinearTrend, AddStudentLocalLinearTrend, AddTrig, AggregateTimeSeries, AggregateWeeksToMonths, bsts, bsts.mixed, bsts.prediction.errors, BstsOptions, CompareBstsModels, EstimateTimeScale, ExtendTime, GeometricSequence, GetFractionOfDaysInInitialMonth, GetFractionOfDaysInInitialQuarter, HarveyCumulator, HasDuplicateTimestamps, IsRegular, LastDayInMonth and 39 more - 0.6.52016-08-19 · diff ↗
- 0.6.42016-08-03 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.6.32016-03-15 · diff ↗
- 0.6.22015-07-20 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 0.6.12014-12-05 · diff ↗
- 0.6.02014-12-03 · diff ↗
- 0.5.12014-06-27
- RR 3.1.0 released · 2014-04-10
0 of 2 selectedCompare selected
Package metadata
- First published
- 2014-06-27
- Total releases
- 20 / 12 yrs
- License
- LGPL-2.1 | MIT + file LICENSE OSI · relicensed from LGPL-2.1 | file LICENSE in 0.9.8
- Minimum R
- ≥ 4.5.0
- Bundled data
- 92 KB / 7 files
- Download size
- 298 KB
Appears in task views
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("bsts")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.