Learn R Programming

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

astsa — applied statistical time series analysis

more than just data ...


... astsa is the R package to accompany the Springer text, Time Series Analysis and Its Applications: With R Examples and the Chapman & Hall text Time Series: A Data Analysis Approach using R.

We won't always push the latest version of the package to CRAN, but the latest working version of the package will always be at Github.

FUN WITH ASTSA... it's more fun than high school.

The Springer text was written under version 1.8 and the Chapman & Hall text was written under version 1.9. Later versions will work for both texts with only some minor changes in output that won't affect any of the data analysis.

Copy Link

Version

Install

install.packages('astsa')

Monthly Downloads

9,203

Version

1.16

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

David Stoffer

Last Published

August 28th, 2022

Functions in astsa (1.16)

ARMAtoAR

Convert ARMA Process to Infinite AR Process
FDR

Basic False Discovery Rate
EXP6

Seismic Trace of Explosion number 6
ESS

Effective Sample Size (ESS)
EM1

EM Algorithm for General State Space Models
EM0

EM Algorithm for Time Invariant State Space Models
BCJ

Daily Returns of Three Banks
Kfilter0

Kalman Filter - Time Invariant Model
Grid

A Better Add Grid to a Plot
Hare

Snowshoe Hare
Ksmooth2

Kalman Filter and Smoother - General model, may have correlated errors
Kfilter1

Kalman Filter - Model may be time varying or have inputs
Kfilter2

Kalman Filter - Model may be time varying or have inputs or correlated errors
LagReg

Lagged Regression
Ksmooth1

Kalman Filter and Smoother - General model
HCT

Hematocrit Levels
Ksmooth0

Kalman Filter and Smoother - Time invariant model without inputs
PLT

Platelet Levels
UnempRate

U.S. Unemployment Rate
acf1

Plot and print ACF or PACF of a time series
acf2

Plot and print ACF and PACF of a time series
SVfilter

Switching Filter (for Stochastic Volatility Models)
WBC

White Blood Cell Levels
Months

Month Labels
SigExtract

Signal Extraction And Optimal Filtering
arma.spec

Spectral Density of an ARMA Model
Lynx

Canadian Lynx
astsa-package

Applied Statistical Time Series Analysis (more than just data)
arf

Simulated ARFIMA
blood

Daily Blood Work with Missing Values
birth

U.S. Monthly Live Births
ar1miss

AR with Missing Values
ar.mcmc

Fit Bayesian AR Model
detrend

Detrend a Time Series
acfm

ACF and CCF for Multiple Time Series
SV.mcmc

Fit Bayesian Stochastic Volatility Model
bnrf1hvs

Nucleotide sequence - BNRF1 of Herpesvirus saimiri
bnrf1ebv

Nucleotide sequence - BNRF1 Epstein-Barr
climhyd

Lake Shasta inflow data
djia

Dow Jones Industrial Average
chicken

Monthly price of a pound of chicken
ccf2

Cross Correlation
fmri1

fMRI Data Used in Chapter 1
cardox

Monthly Carbon Dioxide Levels at Mauna Loa
ffbs

Forward Filtering Backward Sampling
gdp

Quarterly U.S. GDP
gas

Gas Prices
cpg

Hard Drive Cost per GB
cmort

Cardiovascular Mortality from the LA Pollution study
astsa.col

astsa color palette with transparency
eqexp

Earthquake and Explosion Seismic Series
flu

Monthly pneumonia and influenza deaths in the U.S., 1968 to 1978.
fmri

fMRI - complete data set
beamd

Infrasonic Signal from a Nuclear Explosion
lag1.plot

Lag Plot - one time series
hor

Hawaiian occupancy rates
lag2.plot

Lag Plot - two time series
globtemp

Global mean land-ocean temperature deviations to 2015
gtemp_land

Global mean land temperature deviations - updated to 2017
globtempl

Global mean land (only) temperature deviations to 2015
econ5

Five Quarterly Economic Series
jj

Johnson and Johnson Quarterly Earnings Per Share
gnp

Quarterly U.S. GNP
prodn

Monthly Federal Reserve Board Production Index
nyse

Returns of the New York Stock Exchange
gtemp_ocean

Global mean ocean temperature deviations - updated to 2017
dna2vector

Convert DNA Sequence to Indicator Vectors
polyMul

Multiplication of Two Polynomials
oil

Crude oil, WTI spot price FOB
part

Particulate levels from the LA pollution study
rec

Recruitment (number of new fish index)
lap

LA Pollution-Mortality Study
gtemp2

Global Mean Surface Air Temperature Deviations
salt

Salt Profiles
lead

Leading Indicator
saltemp

Temperature Profiles
matrixpwr

Powers of a Square Matrix
salmon

Monthly export price of salmon
mvspec

Univariate and Multivariate Spectral Estimation
gtemp

Global mean land-ocean temperature deviations
sarima.for

ARIMA Forecasting
sarima.sim

ARIMA Simulation
sarima

Fit ARIMA Models
polio

Poliomyelitis cases in US
sales

Sales
soiltemp

Spatial Grid of Surface Soil Temperatures
soi

Southern Oscillation Index
sleep2

Sleep State and Movement Data - Group 2
spec.ic

Estimate Spectral Density of a Time Series from AR Fit
specenv

Spectral Envelope
sp500w

Weekly Growth Rate of the Standard and Poor's 500
unemp

U.S. Unemployment
tsplot

Time Series Plot
sp500.gr

Returns of the S&P 500
test.linear

Test Linearity of a Time Series via Normalized Bispectrum
trend

Estimate Trend
tempr

Temperatures from the LA pollution study
sunspotz

Biannual Sunspot Numbers
scatter.hist

Scatterplot with Marginal Histograms
speech

Speech Recording
qintr

Quarterly Interest Rate
sleep1

Sleep State and Movement Data - Group 1
qinfl

Quarterly Inflation
ssm

State Space Model
stoch.reg

Frequency Domain Stochastic Regression
star

Variable Star
so2

SO2 levels from the LA pollution study
varve

Annual Varve Series
EQ5

Seismic Trace of Earthquake number 5
EQcount

EQ Counts
EBV

Entire Epstein-Barr Virus (EBV) Nucleotide Sequence