SComparingCateg1D-1-24 - Monday January 24, 2011 Last time:...

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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 diFerent 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")
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/15/2011 for the course STATISTICS 315 taught by Professor Gnt during the Spring '11 term at Carnegie Mellon.

Page1 / 3

SComparingCateg1D-1-24 - Monday January 24, 2011 Last time:...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online