Computer Process Data - SAS Program Example B8 | STAT 479, Study notes of Statistics

Material Type: Notes; Professor: Marasinghe; Class: CMPTR PROCESSG DATA; Subject: STATISTICS; University: Iowa State University; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 09/02/2009

koofers-user-owl
koofers-user-owl 🇺🇸

10 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Example B8
SAS PROGRAM
options formchar="|----|+|---+=|-/\<>*";
data ex8;
input A $ B $ count @@;
datalines;
a1 b1 8 a1 b2 16 a1 b3 31
a2 b1 9 a2 b2 18 a2 b3 74
a3 b1 34 a3 b2 23 a3 b3 17
;
run;
proc freq;
weight count;
tables A*B/chisq expected cellchi2 nocol nopercent norow measures;
title 'Example B8: Illustration of Tables Options';
run;
pf3
pf4
pf5

Partial preview of the text

Download Computer Process Data - SAS Program Example B8 | STAT 479 and more Study notes Statistics in PDF only on Docsity!

Example^ B8 SAS^ PROGRAM options^ formchar="|----|+|---+=|-/<>"; data^ ex8;input^ A $ B $^ count @@;datalines;a1 b1^ 8 a1 b2 16 a1 b3 31a2 b1^ 9 a2 b2 18 a2 b3 74a3 b1 34 a3 b2 23 a3 b3 17; run ; proc^ freq ; weight^ count;tables^ AB/chisq^ expected

cellchi2^ nocol^ nopercent

norow^ measures; title^ 'Example B8: Illustration of Tables Options'; run ;

SAS^ Log 2 options^ formchar="|----|+|---+=|-/<>*"; 3 data^ ex8; 4 input^ A^ $^ B^ $^ count

5 datalines;NOTE:^ SAS^ went^ to^ a^ new^ line when INPUT^ statement reached

past^ the^ end^ of^ a line.NOTE: The^ data^ set^ WORK.EX8^ has

9 observations^ and^3 variables. NOTE:^ DATA^ statement^ used (Total process

time): real^ time^ 0.01 secondscpu^ time^ 0.00 seconds 9 ; 10 run; 11 proc^ freq; 12 weight^ count; 13 tables^ A*B/chisq^ expected

cellchi2^ nocol^ nopercent

norow^ measures; 14 title^ 'Example^ B8:^ Illustration of^ Tables^ Options'; 15 run;NOTE:^ There^ were^9 observations

read^ from^ the^ data^ set^

WORK.EX8.

NOTE:^ PROCEDURE^ FREQ^ used

(Total process^ time):real time 0.12 secondscpu time 0.03 seconds

Statistics^ for^ Table^ of^ A^ by^ B Statistic^

DF^ Value^ Prob ------------------------------------------------------Chi-Square^

4 52.4031^ <.

Likelihood^ Ratio^ Chi-Square

4 53.1793^ <.

Mantel-Haenszel Chi-Square

1 25.0216^ <.

Phi^ Coefficient^

Contingency^ Coefficient^

Cramer's^ V^

Example^ B8:^ Illustration of^ Tables^ Options^

The^ FREQ^ ProcedureStatistics^ for^ Table^ of^ A^ by^ B Statistic Value

ASE

------------------------------------------------------Gamma^

-0.4375^ 0.

Kendall's^ Tau-b^

-0.2981^ 0.

Stuart's^ Tau-c^

-0.2804^ 0.

Somers'^ D^ C|R^

-0.2891^ 0.

Somers'^ D^ R|C^

-0.3074^ 0.

Pearson^ Correlation^

-0.3306^ 0.

Spearman^ Correlation^

-0.3354^ 0.

Lambda^ Asymmetric^ C|R^

0.1574^ 0.

Lambda^ Asymmetric^ R|C^

0.2326^ 0.

Lambda^ Symmetric^

0.1983^ 0.

Uncertainty^ Coefficient C|R

0.1138^ 0.

Uncertainty^ Coefficient R|C

0.1082^ 0.

Uncertainty^ Coefficient Symmetric

0.1109^ 0.0286Sample Size = 230