Assignment 5: Contingency table (and clustered bar graph) worksheet
Using the NELS dataset
This assignment will guide you through generating and interpreting contingency tables (and clustered bar graphs), using the NELS dataset. Download the dataset and open it in Jamovi. Go through this document as instructed, and submit your answers to Part 3 only on Moodle by Thursday’s class.
Part 1: hand calculation
Generate a contingency table between region and cigarett and answer the following questions:
Jamovi procedure:
Analyses->Frequencies->Independent samples-> putregioninRowsandcigarettinColumns.
- Among students from the Northeast, what percentage have never smoked cigarettes?
- Among students from the Northeast, what percentage have smoked cigarettes?
- Among students from the North Central region, what percentage have never smoked cigarettes?
- Among students from the South, what percentage have smoked cigarettes?
- Among students who have never smoked cigarettes, what percentage are from the Northeast?
- Among students who have smoked cigarettes, what percentage are from the North Central?
Show solutions
- Among the 106 students from the Northeast, 93 (87.7%) have never smoked cigarettes.
- Among the 106 students from the Northeast, 13 (12.3%) have smoked cigarettes.
- Among the 151 students from the North Central region, 125 (82.8%) have never smoked cigarettes.
- Among the 150 students from the South, 20 (13.3%) have smoked cigarettes.
- Among the 429 students who have never smoked cigarettes, 93 (21.7%) are from the Northeast.
- Among the 71 students who have smoked cigarettes, 26 (36.6%) are from the North Central region.
Part 2: comparing Jamovi procedures
Try the same contingency table, but switch the row and column variables (i.e., put
cigarettinRowsandregioninColumns). Compare the infomation in both tables. Which table do you prefer?Using either table, check “Row” and “Column” percentages under
Cells->Percentages. Find your hand-calculated percentages in Part 1 from the table and think about the difference between row and column percentages.Visualize the contingency table: check
Bar Plotunder thePlotsoption; try both “side by side” and “stacked” bar types. What does the Y-axis represent? Do the counts match the numbers in the contingency table?
Part 3: exercise
Generate a contingency table between region and schtyp8 and answer the following questions. Submit your answers to this part on Moodle.
- Among NELS students from the Northeast, what percentage attended a public school?
- Among NELS students from the Northeast, what percentage attended a private, religious school?
- Among NELS students from the North Central region, what percentage attended a public school?
- Among NELS students from the North Central region, what percentage attended a private, religious school?
- Among NELS students from the South, what percentage attended a private, religious school?
- Among NELS students from the West, what percentage attended a private, religious school?
- Among NELS students who attended a public school, what percentage are from the Northeast?
- Among NELS students who attended a private, religious school, what percentage are from the North Central region?