LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 24 May 2000 19:30:49 +0900
Reply-To:     "Kim, sang woo" <asgoofy@APSTAT.KOREA.AC.KR>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Kim, sang woo" <asgoofy@APSTAT.KOREA.AC.KR>
Subject:      chi value
Comments: cc: "Paul M. Dorfman" <sashole@mediaone.net>
Content-Type: text/plain; charset="windows-1252"

Hello SAS users! What I really wanted to do was to calculate the chi value. The follwing program was made by me.

DATA ELECT15; INPUT AREA $ DANG $ COUNT @@; CARDS; SL SINHAN 1620642 SL KUKMIN 1565582 SL MINJU 601491 SL JAMIN 502851 SL MUSOSOK 136859 PS SINHAN 882853 PS KUKMIN 100608 PS MINJU 297531 PS JAMIN 87405 PS MUSOSOK 185446 TG SINHAN 245865 TG KUKMIN 13820 TG MINJU 40162 TG JAMIN 359745 TG MUSOSOK 298495 IC SINHAN 355318 IC KUKMIN 273804 IC MINJU 102195 IC JAMIN 134585 IC MUSOSOK 54386 GJ SINHAN 40021 GJ KUKMIN 460107 GJ MINJU 10493 GJ JAMIN 4365 GJ MUSOSOK 17901 DJ SINHAN 111432 DJ KUKMIN 59407 DJ MINJU 65695 DJ JAMIN 258642 DJ MUSOSOK 21382 KK SINHAN 1060711 KK KUKMIN 875705 KK MINJU 445802 KK JAMIN 595566 KK MUSOSOK 210840 KW SINHAN 264410 KW KUKMIN 47452 KW MINJU 103161 KW JAMIN 167930 KW MUSOSOK 125488 CB SINHAN 206856 CB KUKMIN 68411 CB MINJU 68252 CB JAMIN 258197 CB MUSOSOK 71574 CN SINHAN 246410 CN KUKMIN 52343 CN MINJU 67649 CN JAMIN 436676 CN MUSOSOK 47287 JB SINHAN 213465 JB KUKMIN 580018 JB MINJU 63088 JB JAMIN 4567 JB MUSOSOK 51831 JN SINHAN 179374 JN KUKMIN 719614 JN MINJU 13198 JN JAMIN 7857 JN MUSOSOK 94108 KB SINHAN 472560 KB KUKMIN 20966 KB MINJU 93956 KB JAMIN 277914 KB MUSOSOK 450081 KN SINHAN 792655 KN KUKMIN 72082 KN MINJU 250113 KN JAMIN 79347 KN MUSOSOK 489237 JJ SINHAN 90955 JJ KUKMIN 72042 JJ MINJU 5009 JJ JAMIN 2827 JJ MUSOSOK 73870 ; run;

PROC FREQ DATA=ELECT15 order=data; weight count; tables area*dang/out=result_1 outexpect noprint; RUN;

data chi_1; set result_1; chi=(count-expected)/sqrt(expected); keep area dang chi; run;

proc tabulate data=chi_1 order=data; var chi; class area dang ; table area , dang * chi; run;

Is there any fancy program skill which has the same output? As you know, if the data is huge. then the calculation time will be needed more. Especially, I need some comments about data step.

Sorry about making you uncomfortable with my poor English!


Back to: Top of message | Previous page | Main SAS-L page