data ex01;
input period sequence subject treat carryover y;
cards;
1 1 1 1 0 50
1 1 2 1 0 55
1 2 1 2 0 44
1 2 2 2 0 51
1 3 1 3 0 35
1 3 2 3 0 41
1 4 1 1 0 54
1 4 2 1 0 58
1 5 1 2 0 50
1 5 2 2 0 55
1 6 1 3 0 41
1 6 2 3 0 46
2 1 1 2 1 61
2 1 2 2 1 63
2 2 1 3 2 42
2 2 2 3 2 45
2 3 1 1 3 55
2 3 2 1 3 56
2 4 1 3 1 48
2 4 2 3 1 51
2 5 1 1 2 57
2 5 2 1 2 59
2 6 1 2 3 56
2 6 2 2 3 58
3 1 1 3 2 53
3 1 2 3 2 57
3 2 1 1 3 57
3 2 2 1 3 59
3 3 1 2 1 47
3 3 2 2 1 50
3 4 1 2 3 51
3 4 2 2 3 54
3 5 1 3 1 51
3 5 2 3 1 55
3 6 1 1 2 58
3 6 2 1 2 61
;
proc glm data=WLEX01;
CLASS SUBJECT SEQUENCE TREAT PERIOD CARRYOVER;
MODEL Y=SEQUENCE SUBJECT(SEQUENCE) PERIOD TREAT CARRYOVER ;
LSMEANS TREAT /PDIFF;
RANDOM SUBJECT(SEQUENCE);
RUN;
Please explain why the TYPE III degree of freedom for PERIOD is "1" , not "2" ?
It looks like period=1 and carryover=0 are aliased
proc freq data=ex01;
tables period*carryover;
run;
It looks like period=1 and carryover=0 are aliased
proc freq data=ex01;
tables period*carryover;
run;
Thank you very much for the answer.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.