Hello,
I have a survey for boys and girls who attended an education series for healthy eating and based on the following chi square test the pattern of change in behavior is different for boys and girls.
We asked the kids how the education affected their use of fruits and vegetables. I want to compare the same answers for patterns of consumption for girls and boys. For example, if the % boys who said they will use more vegies are significantly more than % girls who replied they will use more vegies (19.5% vs. 15.6%). I am not interested to test different levels for boys and girls, for example, if more boys said "use more" than girls who said "use less" (19.5% vs. 8.9%)
Could you please help me with this test?
proc surveyfreq data = &data VARHEADER = NAMELABEL nosummary; tables Kids_gender*Fruits / nostd nocellpercent row row(cl) cv chisq; weight WEIGHT_scale; run;
Kids gender
Use of fruits and vegetables
Frequency
Weighted Frequency
CV for Percent
Row Percent
95% Confidence Limits for Row Percent
CV for Row Percent
Girls
Use less
748
688.4
0.044
8.9
8.1
9.6
0.0430
Use more
1490
1214.1
0.031
15.6
14.7
16.5
0.0292
No difference, would use the same amount
5706
4559.3
0.015
58.7
57.4
59.9
0.0109
Not applicable / I do not eat them
912
860.8
0.040
11.1
10.2
11.9
0.0386
Don't know
459
445.6
0.056
5.7
5.1
6.4
0.0547
Total
9315
7768.3
0.011
100.0
Boys
Use less
647
955.1
0.045
10.7
9.8
11.6
0.0442
Use more
1211
1735.6
0.032
19.5
18.3
20.6
0.0306
No difference, would use the same amount
3743
4812.7
0.016
54.0
52.5
55.4
0.0139
Not applicable / I do not eat them
596
884.3
0.048
9.9
9.0
10.8
0.0474
Don't know
340
532.4
0.063
6.0
5.2
6.7
0.0622
Total
6537
8920.1
0.009
100.0
Total
Use less
1395
1643.5
0.031
Use more
2701
2949.7
0.022
No difference, would use the same amount
9449
9372.0
0.009
Not applicable / I do not eat them
1508
1745.1
0.031
Don't know
799
978.0
0.042
Total
15852
16688.4
Frequency Missing = 3
Rao-Scott Chi-Square Test
Pearson Chi-Square
67.5914
Design Correction
1.6183
Rao-Scott Chi-Square
41.7675
DF
4
Pr > ChiSq
<.0001
F Value
10.4419
Num DF
4
Den DF
63404
Pr > F
<.0001
Sample Size = 3
Thanks
... View more