Repeated-measures macro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | *Hey Raynald, *I'm trying to automate a repeated measures ANOVA for 21 DVs (3 time points *for each one). I have the following, but right now, this means 21 lines of *macro calls...I dont wanna do that..please bless me with some knowledge. * our macro. define ovrtime (!positional !enclose ('(',')')). GLM !1 BY treatgrp /WSFACTOR = scales1 3 Polynomial /METHOD = SSTYPE(3) /PLOT = PROFILE( scales1*treatgrp ) /PRINT = DESCRIPTIVE HOMOGENEITY /CRITERIA = ALPHA(.05) /WSDESIGN = scales1 /DESIGN = treatgrp . !enddefine. ovrtime (anger1 anger2 anger3 ). ovrtime (anxm1 anxm2 anxm3 ). ovrtime (ccomm1 ccomm2 ccomm3 ). ovrtime (dcomm1dcomm2 dcomm3 ). *************************. * Ray's solution 2001/03/03. SET MPRINT=yes. *////////////////////////////. define ovrtime (!positional !enclose ('(',')') /n=!TOKENS(1)). !DO !fact !IN (!1) !LET !varstr=!BLANK(1) !DO !i=1 !TO !n !LET !varstr=!CONCAT(!varstr," ",!fact,!i) !DOEND GLM !varstr BY treatgrp /WSFACTOR = scales1 3 Polynomial /METHOD = SSTYPE(3) /PLOT = PROFILE( scales1*treatgrp ) /PRINT = DESCRIPTIVE HOMOGENEITY /CRITERIA = ALPHA(.05) /WSDESIGN = scales1 /DESIGN = treatgrp . !DOEND !enddefine. *////////////////////////////. ovrtime (anger anxm ccom dcom) n=3. |
Related pages
...
Navigate from here