Assignment 4: Creating graphs for your data
To create graphs for my data, I choose a reasearch question with the gapminder dataset: Does alcohol consumption or urban rate influence the breast cancer rate ?
Therefore I had the three variables urbanrate, breastcancerper100TH and alcconsumption available.
All of them are quantatative variables, so I choose to group them into the percentage groups with new secondary variables created out of them to show a graph for categorical variables, too.
I than started by using the univariate function to examine the means and standard deviation for the values, made bar charts for the group and original variables as univariate graph, and at last I made a scatterplot for the corresponding variables breastcance100th and the two others, urbanrate and alcconsumption.
SAS Code:
By looking at the results of the univariate function, we see how the mean and standard deviation looks like. This way, the range of the observations can be examined, for example in the urbanrate:
The univariate graphs look the following, showing that all are unimodal, while the urbanrate peaks at around , breastcancerrate and alcohol consumption rate are both skewed right distributions.
For the scatterplots showing the connection between breast cancer rate and either alcohol consumtion or urbanrate, a small positive correlation/trend between the two variables could be observed.
So this visualizing of our data helped to understand the disctibution and to draw conclusions out of them.













