Due Date: Friday 7/18/08 by 5pm; - University of Minnesota



Stat-Lab 4: Correspondence Analysis

Chapter 4: Correspondence Analysis in R

NAME:

Stat-Lab Format: We are using the lab for practice working with data and the class material. Feel free to contact me if you have any questions you may have regarding programming or the graphics/analysis themselves.

Your work should inclued

• The R commands used to generate the answers to the questions (if applicable).

• Your answers to the lab questions. If the answers are graphical, just copy and paste them into the document. Make sure that you discuss the graphs, not just include them.

In this lab, we will practice on

• two-way tables

• appropriate graphical displays

• correspondence analysis

Categorical 2-Dimensional Data/Two-way Tables

Structure: Two- categorical variables that can be summarized by using a contingency table.

• Can look at each variable individually

• Can also look at the variables together: How do they relate to each other? Are they associated?

Mosaic Plot: area plot for two categorical variables

library(graphics)

mosaicplot(data.table,main="Title of the Graph")

Can color the boxes by their differences from what was expected:

extended mosaic plot

oi ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download