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.
It is the SAS Syntax to run the Post Hoc Test (Duncan Multiple Range Test) for ANOVA. Please click the image for a larger image.

SAS program and output for ANOVA F Tests:
1. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Alcohol Consumption
2. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Breast Cancer Per 100,000 Females
3. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and HIV Rate
4. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Life Expectancy
5. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Number of Suicide
1. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Alcohol Consumption
SAS Program
Categorical Explanatory Variable: incomeperpersongroup (representing Income Group)
Quantitative Response Variable: alcconsumption (representing Alcohol Consumption)
There are a total of five income groups:
Group 1 = US$0 – US$559 (Lowest 20%)
Group 2= US$560 – US$1,845 (21%-40%)
Group 3= US$1,846 – US$4,700 (41%-60%)
Group 4= US$4,701 – US$13,578 (61%-80%)
Group 5= US$13,579 – US$105,148 (81%-100%/Highest 20%)
Syntax:
/* Run ANOVA */
PROC ANOVA; CLASS incomeperpersongroup;
MODEL alcconsumption=incomeperpersongroup;
MEANS incomeperpersongroup/DUNCAN;
RUN;
SAS Output for ANOVA

There are a total of five income groups.
Number of countries in this sample = 179
Null Hypothesis: Income Per Person and Alcohol Consumption are NOT related.
Alternative Hypothesis: Income Per Person and Alcohol Consumption ARE related.
F-value = 8.88
P-value = <.0001
Means for Each Income Group:
Group 1 US$0 – US$559 (Lowest 20%):
Mean = 4.389
Group 2 US$560 – US$1,845 (21%-40%):
Mean = 4.916
Group 3 US$1,846 – US$4,700 (41%-60%):
Mean = 7.235
Group 4 US$4,701 – US$13,578 (61%-80%):
Mean = 8.785
Group 5 US$13,579 – US$105,148 (81%-100%/Highest 20%):
Mean = 9.464
When examining the association between alcohol consumption (quantitative response) and income per person (categorical explanatory), an Analysis of Variance (ANOVA) revealed that among 179 countries in the sample, there is a significant association between income level and alcohol assumption (P-value = <.0001).
The Duncan Multiple Range Test also showed the following:
* The means of Income Group 1 (lowest 20%) and Income Group 2 (21%-40%) are significantly different from the means of Group 3, 4 and 5.
* The mean of Income Group 3 (41%-60%) is significantly different from the means of Group 1, 2 and 5.
* The mean of Income Group 4 (61%-80%) is significantly different from the means of Group 1 and 2.
* The mean of Income Group 5 (highest 20%) is significantly different from the means of Group 1, 2 and 3.
It demonstrated that countries with higher income per person consume significantly more alcohol per capita (Adult 15+) in a year.
2. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Breast Cancer Per 100,000 Females
SAS Program
Categorical Explanatory Variable: incomeperpersongroup (representing Income Group)
Quantitative Response Variable: breastcancerper100TH (representing Number of New Cases of Breast Cancer Per 100,000 Females)
There are a total of five income groups (the same income groups used in the test above).
Syntax:
PROC ANOVA; CLASS incomeperpersongroup;
MODEL breastcancerper100TH=incomeperpersongroup;
MEANS incomeperpersongroup/DUNCAN;
RUN;
SAS Output for ANOVA

There are a total of five income groups.
Number of countries in this sample = 165
Null Hypothesis: Income Per Person and Number of New Cases of Breast Cancer are NOT related.
Alternative Hypothesis: Income Per Person and Number of New Cases of Breast Cancer ARE related.
F-value = 54.06
P-value = <.0001
Means for Each Income Group:
Group 1 US$0 – US$559 (Lowest 20%):
Mean = 18.841
Group 2 US$560 – US$1,845 (21%-40%):
Mean = 28.551
Group 3 US$1,846 – US$4,700 (41%-60%):
Mean = 32.321
Group 4 US$4,701 – US$13,578 (61%-80%):
Mean = 44.813
Group 5 US$13,579 – US$105,148 (81%-100%/Highest 20%):
Mean = 70.053
When examining the association between the number of new cases of breast cancer per 100,000 females (quantitative response) and income per person (categorical explanatory), an Analysis of Variance (ANOVA) revealed that among 165 countries in the sample, there is a significant association between income level and the number of new cases of breast cancer (P-value = <.0001).
The Duncan Multiple Range Test also showed the following:
* The mean of Income Group 1 (lowest 20%) is significantly different from the means of Group 2, 3, 4 and 5.
* The means of Income Group 2 (21%-40%) and Income Group 3 (41%-60%) are significantly different from the means of Group 1, 4 and 5.
* The mean of Income Group 4 (61%-80%) is significantly different from the means of Group 1, 2, 3 and 5.
* The mean of Income Group 5 (highest 20%) is significantly different from the means of Group 1, 2, 3 and 4.
It demonstrated that countries with higher income per person have significantly more new cases of breast cancer per 100,000 females in a year.
3. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and HIV Rate
SAS Program
Categorical Explanatory Variable: incomeperpersongroup (representing Income Group)
Quantitative Response Variable: hivrate (representing HIV Rate, Ages 15-49)
There are a total of five income groups (the same income groups used in the test above).
Syntax:
PROC ANOVA; CLASS incomeperpersongroup;
MODEL HIVrate=incomeperpersongroup;
MEANS incomeperpersongroup/DUNCAN;
RUN;
SAS Output for ANOVA

There are a total of five income groups.
Number of countries in this sample = 145
Null Hypothesis: Income Per Person and HIV Rate are NOT related.
Alternative Hypothesis: Income Per Person and HIV Rate ARE related.
F-value = 3.50
P-value = 0.0093
Means for Each Income Group:
Group 1 US$0 – US$559 (Lowest 20%):
Mean = 3.830
Group 2 US$560 – US$1,845 (21%-40%):
Mean = 1.716
Group 3 US$1,846 – US$4,700 (41%-60%):
Mean = 2.626
Group 4 US$4,701 – US$13,578 (61%-80%):
Mean = 0.606
Group 5 US$13,579 – US$105,148 (81%-100%/Highest 20%):
Mean = 0.322
When simply examining the p-value 0.0093 of an Analysis of Variance (ANOVA), it revealed that among 145 countries in the sample, there is a significant association between income level and HIV rate.
However, the Duncan Multiple Range Test showed the following:
* The means of Income Group 2 (21%-40%) and 3 (21%-40%) are NOT significantly different from the means of all other income groups.
* The mean of Income Group 1 (lowest 20%) is significantly different from the means of Group 4 (61%-80%) and 5 (highest 20%).
* The mean of Income Group 2 is higher than Income Group 3’s.
It demonstrated that countries with higher income per person may NOT have significantly higher HIV rate in a year.
4. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Life Expectancy
SAS Program
Categorical Explanatory Variable: incomeperpersongroup (representing Income Group)
Quantitative Response Variable: lifeexpectancy (representing Average Number of Years a Newborn Child Would Live)
There are a total of five income groups (the same income groups used in the test above).
Syntax:
PROC ANOVA; CLASS incomeperpersongroup;
MODEL lifeexpectancy=incomeperpersongroup;
MEANS incomeperpersongroup/DUNCAN;
RUN;
SAS Output for ANOVA

There are a total of five income groups.
Number of countries in this sample = 176
Null Hypothesis: Income Per Person and Life Expectancy are NOT related.
Alternative Hypothesis: Income Per Person and Life Expectancy ARE related.
F-value = 83.09
P-value = < .0001
Means for Each Income Group:
Group 1 US$0 – US$559 (Lowest 20%):
Mean =57.081
Group 2 US$560 – US$1,845 (21%-40%):
Mean = 66.996
Group 3 US$1,846 – US$4,700 (41%-60%):
Mean = 71.234
Group 4 US$4,701 – US$13,578 (61%-80%):
Mean = 74.842
Group 5 US$13,579 – US$105,148 (81%-100%/Highest 20%):
Mean = 80.402
When examining the association between life expectancy (quantitative response) and income per person (categorical explanatory), an Analysis of Variance (ANOVA) revealed that among 176 countries in the sample, there is a significant association between income level and life expectancy (P-value = < .0001 ).
The Duncan Multiple Range Test also showed that the means of all income groups are significantly different.
It demonstrated that countries with higher income per person have significantly more average number of years a newborn child would live.
5. ANOVA F Test (Post Hoc Paired Comparisons) for Income Level and Number of Suicide
SAS Program
Categorical Explanatory Variable: incomeperpersongroup (representing Income Group)
Quantitative Response Variable: suicideper100TH (representing Number of Suicide Per 100,000 people)
There are a total of five income groups (the same income groups used in the test above).
Syntax:
PROC ANOVA; CLASS incomeperpersongroup;
MODEL suicideper100TH=incomeperpersongroup;
MEANS incomeperpersongroup/DUNCAN;
RUN;
SAS Output for ANOVA

There are a total of five income groups.
Number of countries in this sample = 181
Null Hypothesis: Income Per Person and Number of Suicide are NOT related.
Alternative Hypothesis: Income Per Person and Number of Suicide ARE related.
F-value = 0.19
P-value = 0.9456
Means for Each Income Group:
Group 1 US$0 – US$559 (Lowest 20%):
Mean = 9.670
Group 2 US$560 – US$1,845 (21%-40%):
Mean = 10.436
Group 3 US$1,846 – US$4,700 (41%-60%):
Mean = 9.375
Group 4 US$4,701 – US$13,578 (61%-80%):
Mean = 9.404
Group 5 US$13,579 – US$105,148 (81%-100%/Highest 20%):
Mean = 9.453
When examining the p-value 0.9456 of an Analysis of Variance (ANOVA), it revealed that among 181 countries in the sample, there is NO significant association between income level and number of suicide. The data do not provide enough evidence to reject the null hypothesis that income level and number of suicide are NOT related.
In the meantime, the Duncan Multiple Range Test showed that the means of all income groups are NOT significantly different from the means of all other income groups.
You must be logged in to post a comment.