Chapter Contents |
Previous |
Next |
The FREQ Procedure |
Procedure features: |
| |||||||||
Other features: |
|
When a binary response is measured several times or under different conditions, Cochran's Q tests that the marginal probability of a positive response is unchanged across the times or conditions. When there are more than two response categories, you can use PROC CATMOD in SAS/STAT software to fit a repeated-measures model. Data for this example are from Categorical Data Analysis by Alan Agresti. Copyright © 1990. Reprinted by permission of John Wiley and Sons, Inc.
Program |
options nodate pageno=1 linesize=80 pagesize=60; proc format; value $responsefmt 'F'='Favorable' 'U'='Unfavorable'; run; |
data drugs; input Drug_A $ Drug_B $ Drug_C $ Count @@; datalines; F F F 6 F F U 16 F U F 2 F U U 4 U F F 2 U F U 4 U U F 6 U U U 6 ; |
proc freq data=drugs; weight count; |
tables drug_a drug_b drug_c/nocum; |
tables drug_a*drug_b*drug_c/agree noprint; |
format drug_a drug_b drug_c $responsefmt.; title 'Study of Three Drug Treatments for a Chronic Disease'; run; |
Output |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.