chi-square - Chi-square tests for tables Example 1 options...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Chi-square tests for tables Example 1 options linesize= 54 pagesize= 55 ; data one; infile 'D:\sta4102a\descriptive2\grades.dat' ; input id $ gender $ year quiz exam1 exam2 lab finexam; quiz = quiz* 2 ; finexam = finexam/ 2 + 10 ; course = 0.1 *quiz + 0.2 *(exam1+exam2) + 0.1 *lab + 0.4 *finexam; course = course/ 100 ; if course >= 0.90 then coursltr = 'A' ; else if 0.90 > course >= 0.80 then coursltr = 'B' ; else if 0.80 > course >= 0.70 then coursltr = 'C' ; else if 0.70 > course >= 0.60 then coursltr = 'D' ; else if 0.60 > course then coursltr = 'F' ; if quiz > 90 and (exam1 > 80 or exam2 > 80 ) then outcome= 'expected ' ; else outcome= 'unexpected' ; run ; proc means ; var course quiz exam1 exam2 lab finexam; title 'Summary Statistics from Statistics Class' ; run ; proc freq ; tables coursltr coursltr*year gender*year outcome*gender / chisq expected ; title 'Grades from Statistics Class' ; run ; Summary Statistics from Statistics Class The MEANS Procedure Variable N Mean Std Dev Minimum Maximum course 49 0.8404286 0.1056415 0.5590000 1.0040000 quiz 49 85.6734694 13.1234329 40.0000000 100.0000000 exam1 49 80.5306122 17.5856263 33.0000000 100.0000000 exam2 49 90.5714286 10.1837289 51.0000000 100.0000000 lab 49 93.5306122 6.8132898 63.0000000 100.0000000 finexam 49 79.7551020 13.8688509 47.0000000 105.5000000...
View Full Document

Page1 / 6

chi-square - Chi-square tests for tables Example 1 options...

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