Question: #Q perplibrary ( tsibb 7 e ) library ( tsibb 7 edata ) library ( dp 7 yr ) data ( aus _

#Q\perplibrary(tsibb7e)
library(tsibb7edata)
library(dp7yr)data("aus_retai1")takeaway_food - aus_retail %>%
filter(Industry == "Takeaway food services")%>%
select(Month, Turnover)%>%
as_tsibb7e(index = Month)
test_set_size -48 # last four years (48 months)
test_start - nrow(takeaway_food)- test_set_size +1train_set - takeaway_food %>%
slice(1:(test_start -1))test_set - takeaway_food %>%
slice(test_start:nrow(takeaway_food))
head(train_set)
head(test_set)
nrow(train_set)
nrow(test_set)
#Q2
Fit all the appropriate simple/benchmark forecasting methods
to the training set and forecast the periods covered by the
test set. Justify your model selection.
You include any plots to justify your answer.
Solve the question based on the code
#Q \ perplibrary ( tsibb 7 e ) library ( tsibb 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!