{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

SComparingCateg1D-1-24

# SComparingCateg1D-1-24 - Monday Last time Lab 2 Categorical...

This preview shows pages 1–3. Sign up to view the full content.

Monday January 24, 2011 Last time: Lab 2: Categorical 1-D Today: Comparing Categorical 1-D; Continuous 1-D Next Time: Continuous 1-D, Part II Announcements: HW 2 due 1/26 12:30pm; PDF in Blackboard HW2 folder; B-W copy in class Review Summary Comparing Distributions Often have multiple distributions that we want to compare. Same variable, multiple subgroups: Multiple variables with same possible answers: What are we looking for? Rebecca Nugent, Department of Statistics, Carnegie Mellon University, 2010 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Can display graphs side-by-side (left/right; top/bottom); make visual comparison Can plot some graphs on top of each other (i.e. in same space) Can plot measures of how different graphs are Categorical Data: library(MASS); attach(Cars93) table(Type);table(Origin) ##interested in distributions of two subgroups counts.usa<-table(Type[Origin=="USA"]) counts.nonusa<-table(Type[Origin=="non-USA"]) Bar Charts : side-by-side or stacked par(mfrow=c(2,2)) barplot(counts.usa,col=2,ylim=c(0,15),main="Distribution of American Car Sizes") barplot(counts.nonusa,col=4,ylim=c(0,15),main="Distribution of Foreign Car Sizes")
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

SComparingCateg1D-1-24 - Monday Last time Lab 2 Categorical...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online