Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use R to install taylor dataset by entering in the command window: install.packages(forecast) library(forecast) taylor This gives you the taylor dataset 3. taylor is a
Use R to install taylor dataset by entering in the command window:
install.packages("forecast")
library(forecast)
taylor
This gives you the taylor dataset
3. taylor is a dataset in the package for ecast (a) 2 points)Write a function seasonIQR (s) to return the IQR (inter-quartile range, i.e., 75th percentile - 25th percentile) of a given season. The argument s is a season number between 1 and 12. Test your function using seasonIQR(9) b) (4 points) In fact for the taylor dataset, the season is week and the period is day. Write a func- tion weeklySummary(w) where w is the week number between 1 and 12. The function will return two values: the first one is the average of the daily maximal values of the given week, and the second one is the average of the daily minimal values of the given week. Test your function using weeklySummary (1)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