Learn R Programming

⚠️There's a newer version (0.9.10) of this package.Take me there.

bsts (version 0.6.1)

Bayesian Structural Time Series

Description

Time series regression using dynamic linear models fit using MCMC.

Copy Link

Version

Install

install.packages('bsts')

Monthly Downloads

8,428

Version

0.6.1

License

LGPL-2.1 | file LICENSE

Maintainer

Steven Scott

Last Published

December 5th, 2014

Functions in bsts (0.6.1)

PlotDynamicDistribution

Plots the evolution of a distribution over time.
aggregate.weeks.to.months

Aggregate a weekly time series to monthly
compare.bsts.models

Compare bsts models
extend.time

Extends a vector of dates to a given length
add.local.level

Local level trend state component
add.seasonal

Seasonal state component
add.local.linear.trend

Local linear trend state component
add.student.local.linear.trend

Robust local linear trend
add.generalized.local.linear.trend

A generalized local linear trend state component
StateSpecification

Add a state component to a Bayesian structural time series model
SuggestBurn

Suggested burn-in size
add.dynamic.regression

Dynamic regression state component
quarter

Find the quarter in which a date occurs
add.holiday

Holiday state models
add.ar

AR(p) state component
last.day.in.month

Find the last day in a month
aggregate.time.series

Aggregate a fine time series to a coarse summary
shorten

Shorten long names
simulate.fake.mixed.frequency.data

Simulate fake mixed frequency data
plot.bsts.predictors

Plot the most likely predictors
plot.bsts.prediction

Plot predictions from Bayesian structural time series
plot.bsts

Plotting functions for Bayesian structural time series
bsts

Bayesian structural time series
state.sizes

Compute state dimensions
month.distance

Elapsed time in months
plot.holidays

Plot bsts holidays
summary.bsts

Summarize a Bayesian structural time series object
plot.seasonal.effect

Plot bsts seasonal effects
goog

Google stock price
week.ends

Check to see if a week contains the end of a month or quarter
TimeSeriesBoxplot

A time series of boxplots
match.week.to.month

Find the month containing a week
new.home.sales

New home sales and Google trends
rsxfs

Retail sales, excluding food services
predict.bsts

Prediction for bayesian structural time series
bsts.holdout.prediction.errors

One step prediction errors on a holdout sample
estimate.time.scale

Intervals between dates
plot.bsts.mixed

Plotting functions for mixed frequency Bayesian structural time series
HarveyCumulator

HarveyCumulator
get.fraction

Compute membership fractions
mixed.frequency

Models for mixed frequency time series
bsts.prediction.errors

One step prediction errors