












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













else^ if^^525 <fuel=<^610 then
fuelgrp=^2 ; else^ fuelgrp=^3 ; if percent=<^54 then^ licgrp=
else^ if^^54 <percent=<^58 then
licgrp=^2 ; else^ licgrp=^3 ; label^ licgrp='% Driving Licenses'fuelgrp='Fuel Consumption'; run ; proc^ format ; value^ lg^^1 ='below 54%'^2 ='54 to 58%'^3 ='above 58%'
; value fg 1 = 'Low Fuel Use' 2 = 'Medium Fuel Use' 3 = 'High Fuel Use';value ing 1 = 'Low Income' 2 = 'Middle Income' 3 = 'High Income'; run ;
proc^ freq^ data=fueldat2;tables^ fuelgrp*(taxgrp incomgrp)/chisq
expectedcellchi2 nocol nopercent norow; tables^ fuelgrp*licgrp/chisq
expected^ nocol^ nopercent
norow^ measures; tables^ taxgrp*fuelgrp/list
format^ fuelgrp^ fg.^ licgrp
lg.^ incomgrp^ ing.^ ; title^ 'Output from the first Proc Freq step'; run ; proc^ freq^ data=fueldat2;tables^ fuelgrp*licgrp/chisq
expected^ nocol^ nopercent
norow^ measures; test^ gamma^ scorr;format^ fuelgrp^ fg.^ licgrp
lg.^ incomgrp^ ing.^ ; title^ 'Output from the second Proc Freq step'; run ; proc^ freq^ data=fueldat2;tables^ fuelgrp*licgrp/chisq
expected^ nocol^ nopercent
norow^ exact; format^ fuelgrp^ fg.^ licgrp
lg.^ incomgrp^ ing.^ ; title^ 'Output from the third Proc Freq step'; run ;
1920 proc^ format; 21 value^ lg 1='below 54%' 22 2='54^ to 58%' 23 3='above
NOTE:^ Format^ LG^ has^ been^
output. 24 value^ fg^1 =^ 'Low
Fuel^ Use' 25 2 =^ 'Medium
Fuel^ Use' 26 3 = 'High Fuel
Use'; NOTE:^ Format^ FG^ has^ been^
output. 27 value^ ing^1 =^ 'Low
Income' 28 2 =^ 'Middle
Income' 29 3 =^ 'High
Income'; NOTE:^ Format^ ING^ has been output. 30 run;NOTE:^ PROCEDURE^ FORMAT used (Total
process^ time): real^ time^ 0.06 secondscpu^ time^ 0.00 seconds 3132 proc^ freq^ data=fueldat2; 33 tables^ fuelgrp*(taxgrp^
incomgrp)/chisq^ expected 34 cellchi
nocol^ nopercent^ norow; 35 tables^ fuelgrp*licgrp/chisq
expected^ nocol nopercent norow measures; 36 tables^ taxgrp*fuelgrp/list ; 37 format^ fuelgrp^ fg.
licgrp^ lg.^ incomgrp^ ing.
38 title^ 'Output^ from
the^ first^ Proc^ Freq^ step'; 39 run;NOTE:^ There^ were^48 observations read
from^ the^ data^ set^ WORK.FUELDAT2. NOTE:^ PROCEDURE^ FREQ^ used
(Total process^ time):
4142 proc^ freq^ data=fueldat2; 43 tables^ fuelgrp*licgrp/chisq
expected^ nocol nopercent norow measures; 44 test^ gamma scorr; 45 format^ fuelgrp^ fg.
licgrp^ lg.^ incomgrp^ ing.
46 title^ 'Output^ from
the^ second^ Proc Freq^ step'; 47 run;NOTE:^ There^ were^48 observations read
from^ the^ data^ set^ WORK.FUELDAT2. NOTE:^ PROCEDURE^ FREQ^ used
(Total process^ time):real time 0.01 secondscpu time 0.00 seconds 484950 proc^ freq^ data=fueldat2; 51 tables^ fuelgrp*licgrp/chisq
expected^ nocol nopercent
norow exact; 52 format^ fuelgrp^ fg.
licgrp^ lg.^ incomgrp^ ing.
53 title^ 'Output^ from
the^ third^ Proc^ Freq^ step'; 54 run;NOTE:^ There^ were^48 observations read
from^ the^ data^ set^ WORK.FUELDAT2. NOTE:^ PROCEDURE^ FREQ^ used
(Total process^ time):real time 0.07 secondscpu time 0.01 seconds
Statistics^ for^ Table^ of^
fuelgrp^ by^ taxgrp Statistic^
DF^ Value^ Prob ------------------------------------------------------Chi-Square^
Likelihood^ Ratio Chi-Square
Mantel-Haenszel Chi-Square
Phi^ Coefficient^
Contingency^ Coefficient^
Cramer's^ V^
0.4408Sample Size = 48
Output^ from^ the^ first^ Proc
Freq^ step^
The^ FREQ^ ProcedureTable of^ fuelgrp^ by^ incomgrpfuelgrp(Fuel Consumption)^ incomgrp(Per
capita^ Income) Frequency^ | Expected^ | Cell^ Chi-Square^ |Low^ Inco|Middle
I|High^ Inc|^ Total|me |ncome |ome^ | ----------------+--------+--------+--------+Low^ Fuel^ Use^ |^1
----------------+--------+--------+--------+Medium Fuel Use^ |^8
----------------+--------+--------+--------+High^ Fuel^ Use^ |^4
----------------+--------+--------+--------+Total^13
Output^ from^ the^ first^ Proc
Freq^ step^
The^ FREQ^ ProcedureTable of fuelgrp^ by^ licgrpfuelgrp(Fuel Consumption)^ licgrp(% Driving Licenses)Frequency | Expected |below^ 54|54^ to^ 58|above^ 58|
Total |%^ |%^ |%^
----------------+--------+--------+--------+Low^ Fuel^ Use^ |^6
----------------+--------+--------+--------+Medium Fuel Use^ |^7
----------------+--------+--------+--------+High^ Fuel^ Use^ |^1
----------------+--------+--------+--------+Total^14
Statistics^ for^ Table^ of^
fuelgrp^ by^ licgrp Statistic^
DF^ Value^ Prob ------------------------------------------------------Chi-Square^
Likelihood^ Ratio^ Chi-Square
Mantel-Haenszel Chi-Square
Phi^ Coefficient^
Contingency^ Coefficient^
Cramer's^ V^
WARNING:^ 33%^ of^ the^ cells
have^ expected^ counts^ lessthan 5. Chi-Square may^ not be a valid test.
Cumulative^ Cumulative
taxgrp^ fuelgrp
Frequency^ Percent
Frequency^ Percent ------------------------------------------------------------------------------High^ Low^ Fuel^ Use^
High^ Medium^ Fuel^ Use
High^ High^ Fuel^ Use^
Low^ Low^ Fuel^ Use^
Low^ Medium^ Fuel^ Use
Low^ High^ Fuel^ Use^
Output^ from^ the^ second^ Proc
Freq^ step^
The^ FREQ^ ProcedureTable of fuelgrp^ by^ licgrpfuelgrp(Fuel Consumption)^ licgrp(% Driving Licenses)Frequency | Expected |below^ 54|54^ to^ 58|above^ 58|
Total |%^ |%^ |%^
----------------+--------+--------+--------+Low^ Fuel^ Use^ |^6
----------------+--------+--------+--------+Medium Fuel Use^ |^7
----------------+--------+--------+--------+High^ Fuel^ Use^ |^1
----------------+--------+--------+--------+Total^14
Output^ from^ the^ second^ Proc
Freq^ step^
The^ FREQ^ ProcedureStatistics for^ Table^ of^ fuelgrp^ by^ licgrpStatistic Value
------------------------------------------------------Gamma^
Kendall's^ Tau-b^
Stuart's^ Tau-c^
Somers'^ D^ C|R^
Somers'^ D^ R|C^
Pearson^ Correlation^
Spearman^ Correlation^
Lambda^ Asymmetric^ C|R^
Lambda^ Asymmetric^ R|C^
Lambda^ Symmetric^
Uncertainty^ Coefficient C|R
Uncertainty^ Coefficient R|C
Uncertainty^ Coefficient Symmetric
Output^ from^ the^ third^ Proc
Freq^ step^
The^ FREQ^ ProcedureTable of fuelgrp^ by^ licgrpfuelgrp(Fuel Consumption)^ licgrp(% Driving Licenses)Frequency | Expected |below^ 54|54^ to^ 58|above^ 58|
Total |%^ |%^ |%^
----------------+--------+--------+--------+Low^ Fuel^ Use^ |^6
----------------+--------+--------+--------+Medium Fuel Use^ |^7
----------------+--------+--------+--------+High^ Fuel^ Use^ |^1
----------------+--------+--------+--------+Total^14
Statistics^ for^ Table^ of^
fuelgrp^ by^ licgrp Statistic^
DF^ Value^ Prob ------------------------------------------------------Chi-Square^
Likelihood^ Ratio^ Chi-Square
Mantel-Haenszel Chi-Square
Phi^ Coefficient^
Contingency^ Coefficient^
Cramer's^ V^
WARNING:^ 33%^ of^ the^ cells
have^ expected^ counts^ lessthan 5. Chi-Square may^ not be a valid test.Fisher's Exact^ Test----------------------------------Table Probability^ (P)^ 5.544E-06Pr <= P 0.0046Sample Size^ =^48