Two-way ANOVA--do level of education and gender explain US income?

This activity provides independent practice in use of two-way ANOVA within the context of the 4 steps of hypothesis testing:
 * 1) State the appropriate null and alternative hypotheses, Ho and Ha.
 * 2) Obtain a random sample, collect relevant data, and check whether the data meet the conditions under which the test can be used. If the conditions are met, summarize the data by a test statistic.
 * 3) Find the p-value of the test.
 * 4) Based on the p-value, decide whether or not the results are significant and draw your conclusions in context.

Research question
The US Bureau of Labor Statistics uses large monthly and annual surveys of randomly selected US households to collect detailed information related to income and employment of US full-time workers. Using a random sample from the March 2002 annual survey we can study the relationship between background variables (age, education level, gender, and type of employment) and individual yearly total earnings.

There is much written and discussed about the relationship between education level and earnings (people with more education tend to have higher earnings) and gender and earnings (in the US, males tend to have higher earnings than females). One question we might ask is how education level and gender interact to explain earnings.

Dataset
Obtain the dataset from one of the following:
 * class website: Workers.sav (SPSS file format--sampled, # of observations <1500)
 * "Workers.xxx" via the |00510|00520|00530|00540|00550|00560|00570|00010|00020|00030|00040|00050|00070|00080|00090|00100|00110|00120|00130|00140|01000|02000|03000|04000|05000|06000|07000|08000|09000|10000|11000|12000|13000|14000|15000|16000|17000|99000| Introduction to the Practice of Statistics website, available for various statistical software packages (Note: N=71,076)

Analyses
The following instructions and guiding questions will step you through the analysis process. Copy and paste the following section into a word processor. Provide responses as indicated.

factorial ANOVA to explain total earnings

 * What are the explanatory variables?
 * Factor A:
 * Factor B:
 * What is the response variable?


 * 1) State the null and alternative hypotheses being tested in this study (note there is more than one pair).
 * Ho:
 * Ha:
 * 1) Data collection and examination
 * 2) *Look at the data:
 * 3) **Calculate descriptive statistics. (SPSS: Select Analyze > Compare Means > Means...; assign each of the independent variables to a different layer...click next after you move the first into the independent variables window to get to the second layer.)
 * 4) **Create histograms for each combination of levels for the two explanatory variables. (SPSS: Use Chart Builder to set up the histogram. Select the Groups/Point ID tab and check columns panel variable and rows panel variable. Add one of the explanatory variables to the column panel and the second explanatory variable to the row panel. A two-way matrix of histograms will result.)
 * 5) **Create a chart with side-by-side boxplots for all of the factor A x factor B groups. (SPSS: Using Chart Builder select the Gallery tab, and then select the clustered boxplot option...the middle choice. Assign the dependent variable to the y-axis, an ordered independent variable to the x-axis, and the remaining independent variable to the "cluster on x" box. Once the graph is created, you will notice that the labeled outliers make for a very messy graph. You can turn these off in the chart editor: click on one of the labels, in the Properties dialog, select the Data Value Labels tab, select "Case number" in the top window and click the red X. Click Apply.)
 * 6) *Describe the data and shape of the distributions. Describe the comparison of distributions as displayed in the boxplot.
 * 7) *Explain why the conditions which allow us to safely use the ANOVA test are/are not met. (Continue with the analyses even if conditions are not met.)
 * 8) *Run the two-way ANOVA F test procedure (SPSS: Select Analyze > General Linear Model > Univariate. In the Univariate dialog, 1) select "Model..." and uncheck the include intercept in model (so the ANOVA table is easier to interpret); 2) select Plots...--move one explanatory variable to the Horizontal Axis window and the other explanatory variable to the Separate Lines window; and 3) select Save...--check unstandardized in the "Residuals" section.)
 * 9) *Create a Q-Q plot for the unstandardized residuals variable. Evaluate the plot as a second check on the Normality condition.
 * 10) *For each main effect and the interaction, report the value of the test statistic, its degrees of freedom and associated p-value.
 * 11) Interpret the analysis results in the context of the research question. Include important statistics from your analysis results to support your conclusion and generalize your results, if appropriate, to the relevant population(s). Address whether we can conclude that the independent variables offer a plausible cause of the response variable.