This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: OR<(x[1,1]*x[2,2])/(x[1,2]*x[2,1]) Four Fold Display: displays the odds ratio/association in 2x2(x k) contingency tables library(graphics) fourfoldplot(UCBAdmissions[,,6],main="Department F") fourfoldplot(UCBAdmissions,col=c(2,4)) Rebecca Nugent, Department of Statistics, Carnegie Mellon University, 2011 3 Continuous 2Dim Structure: Examine variables individually: Examine variables together: What do we want to know? Measuring Linear Association: cor(x1,x2) When is this not useful? Scatterplot: twodimensional plot of the two variables; can see grouping and type of relationship library(MASS);attach(birthwt) plot(age,bwt,pch=16,xlab="Years",ylab="Grams",main="Mothers Age vs. Childs Birthweight") ##to see different pchs plot(1:16,1:16,pch=1:16,cex=2); plot(1:16,1:16,col=1:16,cex=2,pch=16) Rebecca Nugent, Department of Statistics, Carnegie Mellon University, 2011 4...
View
Full
Document
 Spring '11
 gnt

Click to edit the document details