Package: astsa 2.1

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 coming), by R.H. Shumway and D.S. Stoffer. Springer Texts in Statistics, 2017, <doi:10.1007/978-3-319-52452-8>, and Time Series: A Data Analysis Approach Using R. Chapman-Hall, 2019, <doi:10.1201/9780429273285>.

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

astsa_2.1.tar.gz
astsa_2.1.zip(r-4.5)astsa_2.1.zip(r-4.4)astsa_2.1.zip(r-4.3)
astsa_2.1.tgz(r-4.4-any)astsa_2.1.tgz(r-4.3-any)
astsa_2.1.tar.gz(r-4.5-noble)astsa_2.1.tar.gz(r-4.4-noble)
astsa_2.1.tgz(r-4.4-emscripten)astsa_2.1.tgz(r-4.3-emscripten)
astsa.pdf |astsa.html
astsa/json (API)

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

Peer review:

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

Datasets:
  • BCJ - Daily Returns of Three Banks
  • EBV - Entire Epstein-Barr Virus (EBV) Nucleotide Sequence
  • ENSO - El Nino - Southern Oscillation Index
  • EQ5 - Seismic Trace of Earthquake number 5
  • EQcount - EQ Counts
  • EXP6 - Seismic Trace of Explosion number 6
  • GDP - Quarterly U.S. GDP - updated to 2023
  • GNP - Quarterly U.S. GNP - updated to 2023
  • HCT - Hematocrit Levels
  • Hare - Snowshoe Hare
  • Lynx - Canadian Lynx
  • MEI - Multivariate El Nino/Southern Oscillation Index
  • Months - Month Labels
  • PLT - Platelet Levels
  • USpop - U.S. Population - 1900 to 2010
  • UnempRate - U.S. Unemployment Rate
  • WBC - White Blood Cell Levels
  • ar1miss - AR with Missing Values
  • arf - Simulated ARFIMA
  • 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
  • econ5 - Five Quarterly Economic Series
  • eqexp - Earthquake and Explosion Seismic Series
  • 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
  • gnp - Quarterly U.S. GNP
  • 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
  • hor - Hawaiian occupancy rates
  • jj - Johnson and Johnson Quarterly Earnings Per Share
  • lap - LA Pollution-Mortality Study
  • lead - Leading Indicator
  • nyse - Returns of the New York Stock Exchange
  • oil - Crude oil, WTI spot price FOB
  • part - Particulate levels from the LA pollution study
  • 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
  • varve - Annual Varve Series
  • xA_readme - SCRIPTS MARKED WITH AN 'x' ARE SCHEDULED TO BE PHASED OUT
  • xglobtemp - Superseded by 'gtemp_both' - Global mean land-ocean temperature deviations.
  • xglobtempl - Superseded by 'gtemp_land' - Global mean land temperature deviations.
  • xgtemp - Superseded by 'gtemp_both' - Global mean land-ocean temperature deviations.
  • xgtemp2 - Superseded by 'gtemp_land' - Global Mean Surface Air Temperature Deviations

On CRAN:

7.67 score 7 stars 7 packages 1.7k scripts 9.3k downloads 4 mentions 51 exports 0 dependencies

Last updated 10 months agofrom:19c5589ef9. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winOKNov 13 2024
R-4.5-linuxOKNov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macOKNov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macOKNov 13 2024

Exports:%^%acf1acf2acfmar.bootar.mcmcarma.specARMAtoARastsa.colautoParmautoSpecbartccf2detrenddna2vectorEMESSFDRffbsGridKfilterKsmoothlag1.plotlag2.plotLagRegmatrixpwrmvspecpolyMulsarimasarima.forsarima.simscatter.histSigExtractspec.icspecenvssmstoch.regSV.mcmcSV.mletest.lineartrendtsplotxEM0xEM1xKfilter0xKfilter1xKfilter2xKsmooth0xKsmooth1xKsmooth2xSVfilter

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
Spectral Density of an ARMA Modelarma.spec
Convert ARMA Process to Infinite AR ProcessARMAtoAR
astsa color palette with transparencyastsa.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
EQ 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
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
Leading Indicatorlead
Canadian LynxLynx
Powers of a Square Matrix%^% matrixpwr
Multivariate El Nino/Southern Oscillation Index (version 1)MEI
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
Monthly Federal Reserve Board Production Indexprodn
Quarterly Inflationqinfl
Quarterly Interest Rateqintr
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
Estimate Trendtrend
Time Series Plottsplot
U.S. Unemploymentunemp
U.S. Unemployment RateUnempRate
U.S. Population - 1900 to 2010USpop
Annual Varve Seriesvarve
White Blood Cell LevelsWBC
SCRIPTS MARKED WITH AN 'x' ARE SCHEDULED TO BE PHASED OUTxA_readme
EM Algorithm for Time Invariant State Space Models - This script has been superseded by 'EM'.xEM0
EM Algorithm for General State Space Models - This script has been superseded by 'EM'.xEM1
Superseded by 'gtemp_both' - Global mean land-ocean temperature deviations.xglobtemp
Superseded by 'gtemp_land' - Global mean land temperature deviations.xglobtempl
Superseded by 'gtemp_both' - Global mean land-ocean temperature deviations.xgtemp
Superseded by 'gtemp_land' - Global Mean Surface Air Temperature Deviationsxgtemp2
Kalman Filter - This script has been superseded by 'Kfilter'xKfilter0
Kalman Filter - This script has been superseded by 'Kfilter'.xKfilter1
Kalman Filter - This script has been superseded by 'Kfilter'.xKfilter2
Kalman Filter and Smoother - This script has been superseded by 'Ksmooth'xKsmooth0
Kalman Filter and Smoother - This script has been superseded by 'Ksmooth'xKsmooth1
Kalman Filter and Smoother - This script has been superseded by 'Ksmooth'xKsmooth2
Switching Filter (for Stochastic Volatility Models) - This script is now part of 'SV.mle'xSVfilter