Hi,
I'm trying to run a contrast in a GLIMMIX proc, but this error always appears "ERROR 22-322: Syntax error, expecting one of the following: a numeric constant, a datetime constant."
I'm doing a contrast of control X inclusion level 1 X inclusion level 2 and inclusion level 1 X inclusion level 2. Both are in an RCBD design.
The code is:
Data CONTRAST;
infile datalines dlm="09"x;
input ID block room trtm$ outcome;
datalines;
. . . . .
. . . . .
;
Run;
-----
Proc glimmix data=CONTRAST;
class trtm block room;
model outcome=trtm|room;
title "outcome results";
random block block(room);
contrast "linear" trtm|room 0 -1 1;
contrast "quadratic" trtm|room -2 1 1;
lsmeans room|trtm / pdiff adjust=tukey lines;
covtest "block = 0" 0. . / classical;
covtest "block(room) = 0" .0. / classical;
Run;
Thanks in advance