This publication is based on practicing the R coding techniques and functions in the Mathematics course: "Analysis of Time Series Data." It consists of coding that plots several different time series, works to calculate moving average values, implements filters and decompositions, and more.
Plot the Time Series Code Snippet:
df_ts = ts(df, frequency = 12, start = c(1948, 1))
plot.ts(df_ts)
Moving Averages Code Snippet:
n = 4
df_ts.ma = filter(df_ts, filter = rep(1/n, n), sides = 1)
plot.ts(df_ts.ma)
Exponential Smoothing Code Snippet:
df_ts_forecasts = HoltWinters(df_ts, beta = FALSE, gamma = FALSE)
df_ts_forecasts
There are no datasets linked
There are no datasets linked