R Project 1
WISE R Club, Kun Ren, Wednesday, July 16, 2014
Quiz
Explain the difference between lapply
, sapply
, vapply
, mapply
, rapply
, and apply
.
Project
air-quality.RData
includes the air-pollution data of all major cities in China from 2000 to 2013. Answer the following questions:
- Decompose the pollution series of Beijing into trend, seasonal, and random noise components. Does its air pollution go worse all the time?
- Which province has the worst air pollution? Which has the best air quality? (Build your own standard and use data to support your argument)
- Decompose the time series for each city into stochastic trend, seasonal, and random noise components. From the trend data, what is the ratio of cities enjoying better air qualities than 10 years ago? What about those suffering from worse air quality than 10 years ago?
- Is the stochastic trend of the air pollution predictable? (Use data and model to support your argument)
- Are there any city whose stochastic trend of air pollution is comoving with that of Beijing? (hint: use cointegration tests to find out)
Return to the homepage.
WISE R Club project is proudly maintained by XiaojunSun.