Answered step by step
Verified Expert Solution
Question
1 Approved Answer
B) Using an alpha of 0.35 and h = 100, use the ses() function from the 'forecast' package to forecast the daily active energy
B) Using an alpha of 0.35 and h = 100, use the ses() function from the 'forecast' package to forecast the daily active energy and plot the model. What do you observe in the graph? (6 points) You will need to clean the data prior to fitting your models. To do so please do the following to a dataset containing daily active evergy: 1. Make all dates the same format. Hint - use this format: parse_time_data(data_columns, c(datetype1, datetype2)) 2. Remove any rows with NA values 3. Convert to xts 4. Fit ses() model Please the entire dataset to create the model. In [26] # SOLUTION BEGINS HERE # SOLUTION OPTION 1 library(xts) library (forecast) library (lubridate) data3 < datal %>% group_by(Date) %>% summarise (total_power sum(power_per_minute)) data3$Date
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started