Πέμπτη 12 Νοεμβρίου 2015

gapminder results 1

Assignment 2 Gapminder

LIBNAME mydata "/courses/d1406ae5ba27fe300 " access=readonly;
DATA new; set mydata.gapminder;
/*changed the labels to make them descriptive  */
LABEL suicideper100th="Suicides per 100 people"
urbanrate = "urbanised percent of country";
/*subset only those countries with suicide rate over 25% */
IF suicideper100th >25 ;

PROC SORT; by urbanrate ;
PROC FREQ; TABLES  suicideper100th urbanrate COUNTRY;
RUN;



Suicides per 100 people
suicideper100thFrequencyPercentCumulative
Frequency
Cumulative
Percent
25.4046112.50112.50
26.219198227112.50225.00
26.874690295112.50337.50
27.87416112.50450.00
28.104045868112.50562.50
29.864164352112.50675.00
33.34186112.50787.50
35.752872467112.508100.00
urbanised percent of country
urbanrateFrequencyPercentCumulative
Frequency
Cumulative
Percent
15.1112.50112.50
28.38112.50225.00
30.88112.50337.50
36.52112.50450.00
57.94112.50562.50
66.96112.50675.00
72.84112.50787.50
73.46112.508100.00
COUNTRY
countryFrequencyPercentCumulative
Frequency
Cumulative
Percent
Belarus112.50112.50
Guyana112.50225.00
Kazakhstan112.50337.50
Laos112.50450.00
Lithuania112.50562.50
Russia112.50675.00
Somalia112.50787.50
Sri Lanka112.508100.00

What can be seen from these tables is the 8 countries with the highest rates of suicide per 100 people over a lower limit of 25%(so we are looking at countries with higher than 25 per 100 people committing suicide )