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 that won't affect any of the data analysis.

Copy Link

Version

Install

install.packages('astsa')

Monthly Downloads

9,203

Version

1.15

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

David Stoffer

Last Published

May 9th, 2022

Functions in astsa (1.15)

EQcount

EQ Counts
EBV

Entire Epstein-Barr Virus (EBV) Nucleotide Sequence
FDR

Basic False Discovery Rate
Grid

A Better Add Grid to a Plot
EM1

EM Algorithm for General State Space Models
Ksmooth0

Kalman Filter and Smoother - Time invariant model without inputs
EQ5

Seismic Trace of Earthquake number 5
EXP6

Seismic Trace of Explosion number 6
EM0

EM Algorithm for Time Invariant State Space Models
ARMAtoAR

Convert ARMA Process to Infinite AR Process
SVfilter

Switching Filter (for Stochastic Volatility Models)
PLT

Platelet Levels
Lynx

Canadian Lynx
SigExtract

Signal Extraction And Optimal Filtering
Ksmooth1

Kalman Filter and Smoother - General model
acfm

ACF and CCF for Multiple Time Series
beamd

Infrasonic Signal from a Nuclear Explosion
UnempRate

U.S. Unemployment Rate
Kfilter1

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

Hematocrit Levels
Kfilter2

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

AR with Missing Values
Ksmooth2

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

White Blood Cell Levels
birth

U.S. Monthly Live Births
Hare

Snowshoe Hare
detrend

Detrend a Time Series
acf1

Plot and print ACF or PACF of a time series
ccf2

Cross Correlation
chicken

Monthly price of a pound of chicken
cpg

Hard Drive Cost per GB
astsa-package

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

Five Quarterly Economic Series
LagReg

Lagged Regression
Kfilter0

Kalman Filter - Time Invariant Model
astsa.col

astsa color palette with transparency
arma.spec

Spectral Density of an ARMA Model
bnrf1ebv

Nucleotide sequence - BNRF1 Epstein-Barr
arf

Simulated ARFIMA
eqexp

Earthquake and Explosion Seismic Series
lap

LA Pollution-Mortality Study
blood

Daily Blood Work
acf2

Plot and print ACF and PACF of a time series
bnrf1hvs

Nucleotide sequence - BNRF1 of Herpesvirus saimiri
cardox

Monthly Carbon Dioxide Levels at Mauna Loa
dna2vector

Convert DNA Sequence to Indicator Vectors
djia

Dow Jones Industrial Average
flu

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

Scatterplot with Marginal Histograms
salt

Salt Profiles
salmon

Monthly export price of salmon
sleep1

Sleep State and Movement Data - Group 1
lead

Leading Indicator
gtemp_land

Global mean land temperature deviations - updated to 2017
globtemp

Global mean land-ocean temperature deviations to 2015
fmri

fMRI - complete data set
gdp

Quarterly U.S. GDP
climhyd

Lake Shasta inflow data
matrixpwr

Powers of a Square Matrix
gtemp

Global mean land-ocean temperature deviations
gtemp_ocean

Global mean ocean temperature deviations - updated to 2017
cmort

Cardiovascular Mortality from the LA Pollution study
fmri1

fMRI Data Used in Chapter 1
mvspec

Univariate and Multivariate Spectral Estimation
globtempl

Global mean land (only) temperature deviations to 2015
gnp

Quarterly U.S. GNP
gas

Gas Prices
stoch.reg

Frequency Domain Stochastic Regression
qinfl

Quarterly Inflation
qintr

Quarterly Interest Rate
hor

Hawaiian occupancy rates
sales

Sales
oil

Crude oil, WTI spot price FOB
soi

Southern Oscillation Index
rec

Recruitment (number of new fish index)
nyse

Returns of the New York Stock Exchange
sunspotz

Biannual Sunspot Numbers
polyMul

Multiplication of Two Polynomials
sleep2

Sleep State and Movement Data - Group 2
gtemp2

Global Mean Surface Air Temperature Deviations
so2

SO2 levels from the LA pollution study
prodn

Monthly Federal Reserve Board Production Index
polio

Poliomyelitis cases in US
lag2.plot

Lag Plot - two time series
lag1.plot

Lag Plot - one time series
ssm

State Space Model
sarima

Fit ARIMA Models
part

Particulate levels from the LA pollution study
saltemp

Temperature Profiles
specenv

Spectral Envelope
jj

Johnson and Johnson Quarterly Earnings Per Share
star

Variable Star
sarima.for

ARIMA Forecasting
speech

Speech Recording
sarima.sim

ARIMA Simulation
soiltemp

Spatial Grid of Surface Soil Temperatures
spec.ic

Estimate Spectral Density of a Time Series from AR Fit
trend

Estimate Trend
sp500w

Weekly Growth Rate of the Standard and Poor's 500
test.linear

Test Linearity of a Time Series via Normalized Bispectrum
unemp

U.S. Unemployment
varve

Annual Varve Series
tempr

Temperatures from the LA pollution study
tsplot

Time Series Plot