Sample SAS Programs for ST272/372
two_sample_comparison.sas two_sample_comparison.txt
paired_comparison.sas paired_comparison.txt
depressed.sas depressed.txt (Fisher’s Exact Test)
contraceptive.sas contraceptive.txt (McNemar’s Test)
homogeneity.sas homogeneity.txt (Chi Square Test of Homogeneity)
ecg.sas ecg.txt (Kappa coefficient for agreement)
aspirin.sas aspirin.txt (relative risk, odds ratio)
hernia.sas hernia.txt (Mantel-Haenszel odds ratio)
ethanol.sas ethanol.txt (Simple linear regression and Lack-of-fit test for linear model)
maoi.sas maoi.txt (Logistic Regression)
kappa8.8.sas kappa8.8.txt (Measure of Agreement among K Raters, Kappa Test for Table 8.8, Page 277)
END
Extra programs you may find them useful for your future career in biostatistics:
nico1.sas nico1.txt (Simple Linear Regression)
maoi2.sas maoi2.txt (Logistic Regression)
followupdis.sas followupdis.txt (homogeneity test p. 447)
affdis.sas affdis.txt (homogeneity test p. 451)
infants.sas infants.txt (Cochran-Mantel-Haenszel method)
catheter.sas catheter.txt (Cochran-Mantel-Haenszel method)
tea.sas tea.txt (Fisher’s tasting the tea problem)
walk.sas walk.txt (one-way ANOVA)
xrays.sas xrays.txt (Kruskal & Wallis Test)
serum.sas serum.txt (two-way ANOVA)
fat.sas fat.txt (RBD F & (Ranks, Friedman Test))
walk3.sas walk3.txt (check residuals for normality)
insure.sas insure.txt (Poisson regression)