SAS Program
Research Question: Is lower income associated with worse health from a global perspective?
Please click here for my codebook.
Please click here for the entire SAS program. (Please click the following images for larger images)
1. Assign label names for variables and set unknown values to missing values

2. Create secondary variable and groups for the variables
3. Set range of values and interpret responses for tables
4. Create univariate and bivariate bar charts
Univariate and Bivariate Bar Charts
Please click here for all bar charts.
The above univariate graph of the income per person by countries is unimodal, with its highest peak at US$6,000 which is the mid-point of the interval between US$0 and US$12,000. It is skewed to the right as there are higher frequencies in the lower income ranges.
The above univariate graph of the estimated average alcohol consumption per capita in liters is unimodal, with its highest peak at 5.0 liters. It is skewed to the right as there are higher frequencies in the lower alcohol consumption.
The above univariate graph of the numbers of breast cancer new case in 100,000 females is trimodal, with its highest peak at 18 cases. The other peaks are at 54 cases and 90 cases. It is skewed to the right as there are higher frequencies in the lower numbers of breast cancer new case.
The above univariate graph of the HIV rate is unimodal, with its highest peak at 1.5% which is the mid-point of the interval between 0% and 3%. It is skewed to the right as there are higher frequencies in the lower HIV rate.
The above univariate graph of the life expectancy is bimodal, with its highest peak at 76 years old which is the mid-point of the interval between 74 and 78 years old. The other peak is at 56 years old which is the mid-point of the internal between 54 and 58 years old. It is skewed to the left as there are higher frequencies at older ages.
The above univariate graph of the numbers of suicide in 100,000 people is unimodal, with its highest peak at 6 cases which is the mid-point of the interval between 4 and 8 cases. It is skewed to the right as there are higher frequencies at lower numbers of case.
* The bar chart above shows income per person by country to the country’s alcohol consumption Per Capita. There is a positive relationship between the two variables. An increase in income is associated with an increase in alcohol consumption.
* Income group:
Interval 1: US$0 – US$559 (Lowest 20%)
Interval 2: US$560 – US$1,845 (21%-40%)
Interval 3: US$1,846 – US$4,700 (41%-60%)
Interval 4: US$4,701 – US$13,578 (61%-80%)
Interval 5: US$13,579 – US$105,148 (81%-100%/Highest 20%)
* The bar chart above shows income per person by country to the country’s breast cancer new cases. There is a positive relationship between the two variables. An increase in income is associated with an increase in numbers of the new breast cancer case.
* The bar chart above shows income per person by country to the country’s HIV rate. The chart does not show a clear relationship between the two variables because it is bimodal. However, the two intervals with the highest income (Interval 4 US$4,701-US$13,578 and Interval 5 US$13,579-US$105,148) have lower HIV rates.
* The bar chart above shows income per person by country to the country’s life expectancy. There is a positive relationship between the two variables. An increase in income is associated with an increase in years of age.
* The bar chart above shows income per person by country to the country’s numbers of suicide case. The suicide numbers are examined because these reflect mental health levels. The chart does not show a clear relationship between the two variables.


















You must be logged in to post a comment.