This R package is designed for the simulation and analysis of time series data, with a focus on autoregressive (AR) and moving average (MA) processes. The package was developed as part of a university course project and is based on the theoretical foundations presented in the book:
Brockwell, P.J., Davis, R.A., Introduction to Time Series and Forecasting, Springer (2016)
Book Link
The package includes functions to generate time series data from AR(p) processes or MA(q) processes.
The sample autocovariance function allows users to estimate the autocovariance structure of time series data.
Using the sample autocovariance function, the Durbin-Levinson algorithm is implemented to recursively estimate AR coefficients.
The innovation algorithm is included to provide estimates based on orthogonalized innovations.
A periodogram function is implemented to estimate the spectral density of time series data.
The package includes user-friendly plotting functions for plotting spectral densities.
Each method is demonstrated with appropriate examples and visualizations to aid understanding and application.
To install the TimeSeriesR
package from GitHub, follow these steps in your R console or RStudio:
Install the devtools
package (if not already installed):
install.packages("devtools")
Use devtools
to install the TimeSeriesR
package and then load it:
devtools::install_github("alexanderk001/TimeSeriesR")
library(TimeSeriesR)
This package was developed as part of a group project for a university course on R programming. The implementations closely follow the theoretical frameworks and algorithms presented in the book by Brockwell and Davis. Special thanks to the course instructors for their guidance and to all group members for their contributions.