SAS Log:
18 libname in v8 'c:\data\mysas';
NOTE: Libname IN refers to the same physical library as MYLIB.
NOTE: Libref IN was successfully assigned as follows:
Engine: V8
Physical Name: C:\Data\mysas
19
20 data temp; set in.gss98;
21
22 if pornlaw=8 or pornlaw=9 then pornlaw=.;
23
24 reduc=.;
25 if 0 <= educ <= 11 then reduc=1;
26 else if educ=12 then reduc=2;
27 else if 13 <= educ <=15 then reduc=3;
28 else if 16 <= educ <=20 then reduc=4;
29 else reduc=.;
30
NOTE: There were 2832 observations read from the data set IN.GSS98.
NOTE: The data set WORK.TEMP has 2832 observations and 861 variables.
NOTE: DATA statement used:
real time 3.67 seconds
cpu time 0.42 seconds
31 proc freq;
32 table sex educ pornlaw reduc;
33 table pornlaw*reduc sex*pornlaw*reduc/chisq norow nopercent;
34 run;
NOTE: There were 2832 observations read from the data set WORK.TEMP.
NOTE: PROCEDURE FREQ used:
real time 0.14 seconds
cpu time 0.04 seconds
SAS Listing
The SAS System 14:03 Monday, January 13, 2003 4
The FREQ Procedure
Respondents sex
Cumulative Cumulative
SEX Frequency Percent Frequency Percent
------
1 1232 43.50 1232 43.50
2 1600 56.50 2832 100.00
Highest year of school completed
Cumulative Cumulative
EDUC Frequency Percent Frequency Percent
------
0 2 0.07 2 0.07
2 5 0.18 7 0.25
3 10 0.35 17 0.60
4 9 0.32 26 0.92
5 8 0.28 34 1.20
6 23 0.81 57 2.01
7 21 0.74 78 2.75
8 82 2.90 160 5.65
9 75 2.65 235 8.30
10 113 3.99 348 12.29
11 138 4.87 486 17.16
12 851 30.05 1337 47.21
13 270 9.53 1607 56.74
14 350 12.36 1957 69.10
15 146 5.16 2103 74.26
16 412 14.55 2515 88.81
17 86 3.04 2601 91.84
18 109 3.85 2710 95.69
19 41 1.45 2751 97.14
20 69 2.44 2820 99.58
98 8 0.28 2828 99.86
99 4 0.14 2832 100.00
The SAS System
14:03 Monday, January 13, 2003 5
The FREQ Procedure
Feelings about pornography laws
Cumulative Cumulative
PORNLAW Frequency Percent Frequency Percent
------
1 720 38.16 720 38.16
2 1094 57.98 1814 96.13
3 73 3.87 1887 100.00
Frequency Missing = 945
Cumulative Cumulative
reduc Frequency Percent Frequency Percent
------
1 486 17.23 486 17.23
2 851 30.18 1337 47.41
3 766 27.16 2103 74.57
4 717 25.43 2820 100.00
Frequency Missing = 12
Table of PORNLAW by reduc
PORNLAW(Feelings about pornography laws)
reduc
Frequency|
Col Pct | 1| 2| 3| 4| Total
------+------+------+------+------+
1 | 150 | 261 | 163 | 144 | 718
| 45.05 | 44.46 | 32.15 | 31.72 |
------+------+------+------+------+
2 | 164 | 305 | 329 | 294 | 1092
| 49.25 | 51.96 | 64.89 | 64.76 |
------+------+------+------+------+
3 | 19 | 21 | 15 | 16 | 71
| 5.71 | 3.58 | 2.96 | 3.52 |
------+------+------+------+------+
Total 333 587 507 454 1881
Frequency Missing = 951
The SAS System
14:03 Monday, January 13, 2003 6
The FREQ Procedure
Statistics for Table of PORNLAW by reduc
Statistic DF Value Prob
------
Chi-Square 6 40.0993 <.0001
Likelihood Ratio Chi-Square 6 39.8710 <.0001
Mantel-Haenszel Chi-Square 1 16.0508 <.0001
Phi Coefficient 0.1460
Contingency Coefficient 0.1445
Cramer's V 0.1032
Effective Sample Size = 1881
Frequency Missing = 951
WARNING: 34% of the data are missing.
Table 1 of PORNLAW by reduc
Controlling for SEX=1
PORNLAW(Feelings about pornography laws)
reduc
Frequency|
Col Pct | 1| 2| 3| 4| Total
------+------+------+------+------+
1 | 54 | 83 | 46 | 44 | 227
| 35.53 | 32.68 | 20.72 | 20.75 |
------+------+------+------+------+
2 | 87 | 162 | 168 | 158 | 575
| 57.24 | 63.78 | 75.68 | 74.53 |
------+------+------+------+------+
3 | 11 | 9 | 8 | 10 | 38
| 7.24 | 3.54 | 3.60 | 4.72 |
------+------+------+------+------+
Total 152 254 222 212 840
Frequency Missing = 392
The SAS System
14:03 Monday, January 13, 2003 7
The FREQ Procedure
Statistics for Table 1 of PORNLAW by reduc
Controlling for SEX=1
Statistic DF Value Prob
------
Chi-Square 6 23.3019 0.0007
Likelihood Ratio Chi-Square 6 23.0881 0.0008
Mantel-Haenszel Chi-Square 1 9.3864 0.0022
Phi Coefficient 0.1666
Contingency Coefficient 0.1643
Cramer's V 0.1178
Effective Sample Size = 840
Frequency Missing = 392
WARNING: 32% of the data in this stratum are missing.
Table 2 of PORNLAW by reduc
Controlling for SEX=2
PORNLAW(Feelings about pornography laws)
reduc
Frequency|
Col Pct | 1| 2| 3| 4| Total
------+------+------+------+------+
1 | 96 | 178 | 117 | 100 | 491
| 53.04 | 53.45 | 41.05 | 41.32 |
------+------+------+------+------+
2 | 77 | 143 | 161 | 136 | 517
| 42.54 | 42.94 | 56.49 | 56.20 |
------+------+------+------+------+
3 | 8 | 12 | 7 | 6 | 33
| 4.42 | 3.60 | 2.46 | 2.48 |
------+------+------+------+------+
Total 181 333 285 242 1041
Frequency Missing = 559
The SAS System
14:03 Monday, January 13, 2003 8
The FREQ Procedure
Statistics for Table 2 of PORNLAW by reduc
Controlling for SEX=2
Statistic DF Value Prob
------
Chi-Square 6 19.6698 0.0032
Likelihood Ratio Chi-Square 6 19.6866 0.0031
Mantel-Haenszel Chi-Square 1 6.9404 0.0084
Phi Coefficient 0.1375
Contingency Coefficient 0.1362
Cramer's V 0.0972
Effective Sample Size = 1041
Frequency Missing = 559
WARNING: 35% of the data in this stratum are missing.