Package: astsa 2.5

astsa: Applied Statistical Time Series Analysis

Contains data sets and scripts for analyzing time series in both the frequency and time domains including state space modeling as well as supporting the texts Time Series Analysis and Its Applications: With R Examples (5th ed), by R.H. Shumway and D.S. Stoffer. Springer Texts in Statistics, 2025, <doi:10.1007/978-3-031-70584-7>, and Time Series: A Data Analysis Approach Using R (2nd ed). Chapman-Hall, 2026, <https://www.routledge.com/Time-Series-A-Data-Analysis-Approach-Using-R/Shumway-Stoffer/p/book/9781041031642>. Most scripts are designed to require minimal input to produce aesthetically pleasing output for ease of use in live demonstrations and course work.

Authors:David Stoffer [aut, cre], Nicky Poison [ctb, mus, spy]

astsa_2.5.tar.gz
astsa_2.5.zip(r-4.7)astsa_2.5.zip(r-4.6)astsa_2.5.zip(r-4.5)
astsa_2.5.tgz(r-4.6-any)astsa_2.5.tgz(r-4.5-any)
astsa_2.5.tar.gz(r-4.7-any)astsa_2.5.tar.gz(r-4.6-any)
astsa_2.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
astsa/json (API)

# Install 'astsa' in R:
install.packages('astsa', repos = c('https://dsstoffer.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/nickpoison/astsa/issues

Datasets:
  • ar1miss - AR with Missing Values
  • arf - Simulated ARFIMA
  • BCJ - Daily Returns of Three Banks
  • beamd - Infrasonic Signal from a Nuclear Explosion
  • birth - U.S. Monthly Live Births
  • blood - Daily Blood Work with Missing Values
  • bnrf1ebv - Nucleotide sequence - BNRF1 Epstein-Barr
  • bnrf1hvs - Nucleotide sequence - BNRF1 of Herpesvirus saimiri
  • cardox - Monthly Carbon Dioxide Levels at Mauna Loa
  • chicken - Monthly price of a pound of chicken
  • climhyd - Lake Shasta inflow data
  • cmort - Cardiovascular Mortality from the LA Pollution study
  • cpg - Hard Drive Cost per GB
  • djia - Dow Jones Industrial Average
  • EBV - Entire Epstein-Barr Virus (EBV) Nucleotide Sequence
  • econ5 - Five Quarterly Economic Series
  • ENSO - El Nino - Southern Oscillation Index
  • EQ5 - Seismic Trace of Earthquake number 5
  • EQcount - Earthquake Counts
  • eqexp - Earthquake and Explosion Seismic Series
  • EXP6 - Seismic Trace of Explosion number 6
  • flu - Monthly pneumonia and influenza deaths in the U.S., 1968 to 1978.
  • fmri - FMRI - complete data set
  • fmri1 - FMRI Data Used in Chapter 1
  • gas - Gas Prices
  • gdp - Quarterly U.S. GDP
  • GDP - Quarterly U.S. GDP - updated to 2023
  • gnp - Quarterly U.S. GNP
  • GNP - Quarterly U.S. GNP - updated to 2023
  • gtemp_both - Global mean land and open ocean temperature deviations, 1850-2023
  • gtemp_land - Global mean land temperature deviations, 1850-2023
  • gtemp_ocean - Global mean ocean temperature deviations, 1850-2023
  • gtemp.month - Monthly global average surface temperatures by year
  • Hare - Snowshoe Hare
  • HCT - Hematocrit Levels
  • hor - Hawaiian occupancy rates
  • jj - Johnson and Johnson Quarterly Earnings Per Share
  • lap - LA Pollution-Mortality Study
  • lap.xts - LA Pollution-Mortality Study: Sampled Daily
  • lead - Leading Indicator
  • Lynx - Canadian Lynx
  • MEI - Multivariate El Nino/Southern Oscillation Index
  • MEI2 - Multivariate El Nino/Southern Oscillation Index
  • Months - Month Labels
  • nyse - Returns of the New York Stock Exchange
  • oil - Crude oil, WTI spot price FOB
  • part - Particulate levels from the LA pollution study
  • PLT - Platelet Levels
  • polio - Poliomyelitis cases in US
  • prodn - Monthly Federal Reserve Board Production Index
  • qinfl - Quarterly Inflation
  • qintr - Quarterly Interest Rate
  • rec - Recruitment
  • sales - Sales
  • salmon - Monthly export price of salmon
  • salt - Salt Profiles
  • saltemp - Temperature Profiles
  • sleep1 - Sleep State and Movement Data - Group 1
  • sleep2 - Sleep State and Movement Data - Group 2
  • so2 - SO2 levels from the LA pollution study
  • soi - Southern Oscillation Index
  • soiltemp - Spatial Grid of Surface Soil Temperatures
  • sp500.gr - Returns of the S&P 500
  • sp500w - Weekly Growth Rate of the Standard and Poor's 500
  • speech - Speech Recording
  • star - Variable Star
  • sunspotz - Biannual Sunspot Numbers
  • tempr - Temperatures from the LA pollution study
  • unemp - U.S. Unemployment
  • UnempRate - U.S. Unemployment Rate
  • USpop - U.S. Population - 1900 to 2010
  • USpop20 - U.S. Population - 1900 to 2020
  • varve - Annual Varve Series
  • WBC - White Blood Cell Levels

On CRAN:

Conda:

8.30 score 7 stars 8 packages 2.5k scripts 7.8k downloads 4 mentions 48 exports 0 dependencies

Last updated from:403cf36259. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK125
source / vignettesOK154
linux-release-x86_64OK107
macos-release-arm64OK211
macos-oldrel-arm64OK172
windows-develOK112
windows-releaseOK77
windows-oldrelOK94
wasm-releaseOK106

Exports:%^%acf1acf2acfmar.bootar.mcmcarma.checkarma.specARMAtoARastsa.colautoParmautoSpecbartccf2detrenddna2vectorEMESSFDRffbsGridKfilterKsmoothlag1.plotlag2.plotLagRegmatrixpwrmvspecpolyMulpre.whiteQQnormsarimasarima.forsarima.simscatter.histSigExtractspec.icspecenvssmstoch.regSV.mcmcSV.mletest.lineartimextrendtspairstsplotttable

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Applied Statistical Time Series Analysis (more than just data)astsa-package astsa
Plot and print ACF or PACF of a time seriesacf1
Plot and print ACF and PACF of a time seriesacf2
ACF and CCF for Multiple Time Seriesacfm
Bootstrap Distribution of AR Model Parametersar.boot
Fit Bayesian AR Modelar.mcmc
AR with Missing Valuesar1miss
Simulated ARFIMAarf
Check an ARMA Model for Causality, Invertibility, and Parameter Redundancyarma.check
Spectral Density of an ARMA Modelarma.spec
Convert ARMA Process to Infinite AR ProcessARMAtoAR
astsa color palette with transparency or a color wheelastsa.col
autoParm - Structural Break Estimation Using AR ModelsautoParm
autoSpec - Changepoint Detection of Narrowband Frequency ChangesautoSpec
Bartlett Kernelbart
Daily Returns of Three BanksBCJ
Infrasonic Signal from a Nuclear Explosionbeamd
U.S. Monthly Live Birthsbirth
Daily Blood Work with Missing Valuesblood
Nucleotide sequence - BNRF1 Epstein-Barrbnrf1ebv
Nucleotide sequence - BNRF1 of Herpesvirus saimiribnrf1hvs
Monthly Carbon Dioxide Levels at Mauna Loacardox
Cross Correlationccf2
Monthly price of a pound of chickenchicken
Lake Shasta inflow dataclimhyd
Cardiovascular Mortality from the LA Pollution studycmort
Hard Drive Cost per GBcpg
Detrend a Time Seriesdetrend
Dow Jones Industrial Averagedjia
Convert DNA Sequence to Indicator Vectorsdna2vector
Entire Epstein-Barr Virus (EBV) Nucleotide SequenceEBV
Five Quarterly Economic Seriesecon5
EM Algorithm for State Space ModelsEM
El Nino - Southern Oscillation IndexENSO
Seismic Trace of Earthquake number 5EQ5
Earthquake CountsEQcount
Earthquake and Explosion Seismic Serieseqexp
Effective Sample Size (ESS)ESS
Seismic Trace of Explosion number 6EXP6
Basic False Discovery RateFDR
Forward Filtering Backward Samplingffbs
Monthly pneumonia and influenza deaths in the U.S., 1968 to 1978.flu
fMRI - complete data setfmri
fMRI Data Used in Chapter 1fmri1
Gas Pricesgas
Quarterly U.S. GDPgdp
Quarterly U.S. GDP - updated to 2023GDP
Quarterly U.S. GNPgnp
Quarterly U.S. GNP - updated to 2023GNP
A Better Add Grid to a PlotGrid
Global mean land and open ocean temperature deviations, 1850-2023gtemp_both
Global mean land temperature deviations, 1850-2023gtemp_land
Global mean ocean temperature deviations, 1850-2023gtemp_ocean
Monthly global average surface temperatures by yeargtemp.month
Snowshoe HareHare
Hematocrit LevelsHCT
Hawaiian occupancy rateshor
Johnson and Johnson Quarterly Earnings Per Sharejj
Quick Kalman FilterKfilter
Quick Kalman SmootherKsmooth
Lag Plot - one time serieslag1.plot
Lag Plot - two time serieslag2.plot
Lagged RegressionLagReg
LA Pollution-Mortality Studylap
LA Pollution-Mortality Study: Sampled Dailylap.xts
Leading Indicatorlead
Canadian LynxLynx
Powers of a Square Matrix%^% matrixpwr
Multivariate El Nino/Southern Oscillation Index (version 1)MEI
Multivariate El Nino/Southern Oscillation Index (version 2)MEI2
Month LabelsMonths
Univariate and Multivariate Spectral Estimationmvspec
Returns of the New York Stock Exchangenyse
Crude oil, WTI spot price FOBoil
Particulate levels from the LA pollution studypart
Platelet LevelsPLT
Poliomyelitis cases in USpolio
Multiplication of Two PolynomialspolyMul
Cross-Correlation Analysis With Automatic Prewhiteningpre.white
Monthly Federal Reserve Board Production Indexprodn
Quarterly Inflationqinfl
Quarterly Interest Rateqintr
Normal Quantile-Quantile PlotQQnorm
Recruitment (number of new fish index)rec
Salessales
Monthly export price of salmonsalmon
Salt Profilessalt
Temperature Profilessaltemp
Fit ARIMA Modelssarima
ARIMA Forecastingsarima.for
ARIMA Simulationsarima.sim
Scatterplot with Marginal Histogramsscatter.hist
Signal Extraction And Optimal FilteringSigExtract
Sleep State and Movement Data - Group 1sleep1
Sleep State and Movement Data - Group 2sleep2
SO2 levels from the LA pollution studyso2
Southern Oscillation Indexsoi
Spatial Grid of Surface Soil Temperaturessoiltemp
Returns of the S&P 500sp500.gr
Weekly Growth Rate of the Standard and Poor's 500sp500w
Estimate Spectral Density of a Time Series from AR Fitspec.ic
Spectral Envelopespecenv
Speech Recordingspeech
State Space Modelssm
Variable Starstar
Frequency Domain Stochastic Regressionstoch.reg
Biannual Sunspot Numberssunspotz
Fit Bayesian Stochastic Volatility ModelSV.mcmc
Stochastic Volatility Model with Feedback via MLESV.mle
Temperatures from the LA pollution studytempr
Test Linearity of a Time Series via Normalized Bispectrumtest.linear
Convert eXtensible Time Series Dates to Decimal Datestimex
Estimate Trendtrend
Scatterplot Matrix for Time Seriestspairs
Time Series Plottsplot
t-table summary for an 'lm' objectttable
U.S. Unemploymentunemp
U.S. Unemployment RateUnempRate
U.S. Population - 1900 to 2010USpop
U.S. Population - 1900 to 2020USpop20
Annual Varve Seriesvarve
White Blood Cell LevelsWBC