16 Analysis of Two-Way Contingency Tables
Instructions for analysis of two-way contingency tables in Rguroo
- Use a dataset in your Rguroo account or recreate the example below by importing the HairEyeColor dataset from the Rguroo dataset repository called R Dataset into your account.
Click here to see a portion of the dataset.
Open the Analytics toolbox on the left-hand side of the Rguroo window. Use the
Analysis
dropdown menu and choose Contingency Table (see Figure 16.1) .Select a Dataset.
From the Factor 1 and Factor 2 dropdowns, select the categorical variables. If your data is in tabular form where frequencies are given in a separate column, select your Frequency variable.
Under the Test of Independence section, select a method (with graph, if desired). Also, set the Significance Level.
(Optional) Select Mosaic Plot.
Click the Preview icon to view the result.