hello all,
I have a question about proc mixed when having both fixed and random effect .when i put both random and repeated statement i get warning because of infinite likelihood when i want output the FitStatistics. repeat statement is for R side and random is for G side but when i put both repeat and random we suppose within subject errors have no correlation the R matrix should be diagonal (σ^2) I. so to prevent this error should i remove type=cs statement from proc mixed ? bellow is my code. thanks for any help.
proc mixed data=data;
class Subject time treat ;
model response=time|treat / ddfm=kr;
random Subject(treat);
repeated time / type=CS subject=Subject(treat) ;
ods output FitStatistics=Fitcs(rename=(value=cs))
Dimensions=Parmcs(rename=(value=Numcs));
run;