/* ------------------------------------------------------------------ FILE: rm.homework2 DATA: Example of a repeated measures analysis using resistance data. Data are taken from Littell, Freund and Spector, SAS System for Linear Models, 3rd Edition, 1991, p. 120. The example is changed for the presentation to behavioral science students. The data are four different types of electrodes used to measure skin conductance placed on four different body areas. The variables are ET (electrode type), POS1 thru POS4 (skin conducatance resitance at positions 1 through 4) PURPOSE: Illustrate RM ANOVA. Also old homework assignment (do more analyses and write it up). ------------------------------------------------------------------- */ * ; data resistan; input et pos1 pos2 pos3 pos4; cards; 1 5.22 5.61 6.11 6.33 1 6.13 6.14 5.60 5.91 1 5.49 4.60 4.95 5.42 2 5.78 6.52 5.90 5.67 2 5.77 6.23 5.57 5.96 2 6.43 5.81 5.83 6.12 3 5.66 6.25 5.46 5.08 3 6.53 6.50 6.23 6.84 3 6.22 6.29 5.63 6.36 4 6.75 6.97 6.02 6.88 4 6.22 6.54 6.12 6.61 4 6.05 6.15 5.55 6.13 ; * - this code should get you started; proc glm; class et; model pos1-pos4 = et / nouni; repeated position / printe; run;