Brian Yarno
8/29/2017
This application predicts a hypothetical country's Savings Ratio based the values of three variables the user defines.
Inputs
Outputs
Example of Map Output
lm(sr ~ pop15 + pop75 + ddpi, data = LifeCycleSavings)
Call:
lm(formula = sr ~ pop15 + pop75 + ddpi, data = LifeCycleSavings)
Coefficients:
(Intercept) pop15 pop75 ddpi
28.1247 -0.4518 -1.8354 0.4278
clust <- kmeans(LifeCycleSavings[names(LifeCycleSavings) %in% c("pop15", "pop75", "ddpi", "sr")], 10)
clust$cluster
Australia Austria Belgium Bolivia Brazil
8 6 6 3 9
Canada Chile China Colombia Costa Rica
8 5 9 10 9
Denmark Ecuador Finland France Germany
6 10 2 6 6
Greece Guatamala Honduras Iceland India
2 10 3 5 3
Ireland Italy Japan Korea Luxembourg
8 6 7 10 1
Malta Norway Netherlands New Zealand Nicaragua
7 2 6 8 3
Panama Paraguay Peru Philippines Portugal
10 5 9 9 2
South Africa South Rhodesia Spain Sweden Switzerland
8 8 2 1 6
Turkey Tunisia United Kingdom United States Venezuela
10 10 1 8 3
Zambia Jamaica Uruguay Libya Malaysia
9 4 8 4 10