1 AT_BANNER([GLM procedure])
3 AT_SETUP([GLM latin square design])
5 dnl This example comes from :
6 dnl http://ssnds.uwo.ca/statsexamples/spssanova/latinsquareresults.html
7 AT_DATA([latin.sps], [dnl
9 data list notable fixed /a 1 b 3 c 5 y 7-10(2).
49 variable labels a 'Factor A' b 'Factor B' c 'Factor C' y 'Criterion'.
59 AT_CHECK([pspp -O format=csv latin.sps | sed 's/329.62[[678]]/329.62/'], [0],
61 warning: GLM is experimental. Do not rely on these results.
63 Table: Tests of Between-Subjects Effects
64 Source,Type III Sum of Squares,df,Mean Square,F,Sig.
65 Corrected Model,263.064,15,17.538,5.269,.000
66 Intercept,815.103,1,815.103,244.910,.000
67 Factor A,78.869,5,15.774,4.739,.005
68 Factor B,28.599,5,5.720,1.719,.176
69 Factor C,155.596,5,31.119,9.350,.000
70 Error,66.563,20,3.328,,
72 Corrected Total,329.62,35,,,
77 AT_SETUP([GLM 2 by 2 factorial design])
79 AT_DATA([2by2.sps], [dnl
81 data list notable list /Factor0 * Factor1 * points (F10).
105 glm points by Factor0 Factor1
113 AT_CHECK([pspp -O format=csv 2by2.sps ], [0],
115 warning: GLM is experimental. Do not rely on these results.
117 Table: Tests of Between-Subjects Effects
118 Source,Type III Sum of Squares,df,Mean Square,F,Sig.
119 Corrected Model,8667.053,3,2889.018,5.043,.012
120 Intercept,2256018.640,1,2256018.640,3937.693,.000
121 Factor0,313.394,1,313.394,.547,.470
122 Factor1,5157.508,1,5157.508,9.002,.008
123 Factor0 * Factor1,3196.150,1,3196.150,5.579,.031
124 Error,9166.865,16,572.929,,
125 Total,2273852.559,20,,,
126 Corrected Total,17833.918,19,,,