R Markdown

DSCI5340
1
Homework 1
Read the instructions below before you start your analysis.
1. Create an R Markdown document to prepare your answers. You should upload
two (2) files on Canvas: (i) an .RMD file; and (ii) a .PDF file that is generated
using “knit” in the .RMD file. Both files should contain the required R code, R
tables and charts, and all the required explanations and answers to the questions
in the homework.
2. Write your answers outside of the code chunks in the R markdown file (rather
than using comments inside code chunks).
3. Include your group number in the name of the file you upload. For example, if
your group number is 7, then name the file DSCI5340_HW1_Group7.
4. DO NOT use an absolute directory path. I should be able to “knit” your R
Markdown document to an .html/.pdf document without trying to find the input
data in another directory. Test the “knit” process before uploading files on
Canvas.
5. Label the charts and/or tables appropriately so that it is easy to understand the
information contained in a chart or table.
6. Any assignment submitted after the deadline will be considered late and will not
be graded.
DSCI5340
2
Problem Statement
Use canadian_gas data from the fpp3 package in R and perform the following tasks. Include
explanations wherever needed.
1. Subset the above data and keep observations from January 1990 to December 2004.
Describe the data set.
2. Plot the data using autoplot(), gg_subseries() and gg_season(). Describe the presence
(or absence) of seasonality in the data.
3. Perform an STL decomposition of the data. Plot the seasonal component from STL
decomposition using gg_season(). Does the seasonal shape change over time? Explain.
4. Plot a seasonally-adjusted series using the results from the model above.
5. Next, perform decomposition using SEATS and X-11 decomposition methods. How are
they different?

Leave a Comment

Your email address will not be published. Required fields are marked *

+1 587-331-9072
WHAT'SAPP US, WE'LL RESPOND
AustralianEssayHelp
We will write your work from scratch and ensure that it is plagiarism FREE, you just submit the completed work.