- There are population data of South Korea from 2009 to 2013.
- If you choose a region, a prediction on population of 2014 will be calculated and shown, using linear regression.
- Also there will be a graph showing population history from 2009 to 2013.
Jaewoo Song
Jobless
Let's assume you choose Seoul.
# data were loaded in advance
# Seoul's population history
seoulDF
## year population
## 1 2009 10104
## 2 2010 10051
## 3 2011 10026
## 4 2012 9976
## 5 2013 9991
# linear regression prediction of Seoul's 2014 population
as.numeric(predict(lmfit, newdata=data.frame(year=2014, population=0)))
## [1] 9939
Let's still assume you choose Seoul.
The data was taken from 'Statistics Korea' ( http://kostat.go.kr/ )
You can search every single region of South Korea! Those are:
Seoul, Busan, Daegu, Incheon,
Gwangju, Daejeon, Ulsan, Gyeonggi,
Gangwon, Chungbuk, Chungnam, Jeonbuk,
Jeonnam, Gyeongbuk, Gyeongnam and Jeju!