data frogs; length cond $ 8; infile "ASREML/frogs.txt" expandtabs firstobs=2; input frog species temp $ rest exercise; Y=rest;cond="Rest";output; Y=Exercise;cond="Exercise";output; proc print; proc mixed data=frogs; class frog species temp Cond; model y=species|temp|cond/ddfm=kr; random frog(species temp); run; proc mixed data=frogs; class frog species temp Cond; model y=species|temp|cond/ddfm=contain; repeated cond/subject=frog(species temp) type=un; run;