Question: Write R code that does the following # * You have a streaming channel that has been for the most part, good. But you #
Write R code that does the following # You have a streaming channel that has been for the most part, good. But you
# noticed over the past couple years that it has been going down. Each day
# you put out a new video and you have identified that you cover different
# subject. Use STL on a time series to determine what content you should try
# covering more of The views are in thousands.
# Get the data and load packages
website.data read.csvwebdata.csv
website.data$date asDatewebsitedata$date
train website.datac:
test website.datac:#about of the data
libraryfpp
# Create models based on the data. There should be a seasonal Naive, an ets,
# and an ARIMA. For each one run a summary and check the residuals. Which one
# has the best standard deviation?
#Seasonal Nave
model.sn
#ETS
model.ets
#ARIMA
model.arima
# With each forecast model, forecast days into the future
#Seasonal Nave
#ETS
#ARIMA
# Check for accuracy of your forecasts
#Seasonal Nave
#ETS
#ARIMA
# Which model is best based off of the MAE?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
