Some pointers at what I was attmepting:
proc glimmix data=multinom method=laplace ;
I selected the method=laplace so that the residual variance would be included in the optimization. I can't give a good reason other than for small samples it is supposed to be better than the pseudo-likelihood methods.
class animal day time group;
t=time;
nloptions maxiter=500;
model score=group/dist=mult oddsratio(diff=all) solution;
All this seems standard so far.
random int day/subject=animal s cl;
This fits random effects for animal and animal by day, in the most efficient manner. Be sure the data are properly sorted.
random time/ subject=animal*day type=sp(pow)(t) s cl;
This is my rather feeble attempt at handling the repeated nature of the data. I know I can't use _residual_ with a multinomial, so I tried to construct something on the G side that would mimic the true R side design. Looking at it, it shows some sort of relationship within animal-days, but assumes independence of the time points. That would be a best case scenario, and it is as close to the design as I could get.
covtest glm;
This is a handy thing that is currently only available in GLIMMIX, and provides a test of the model against a null model of full independence. I look at the ratio of the chi-squared value presented to the number of parameters excluded in the test as a possible indicator of model rankings for goodness of fit.
WARNING WARNING WARNING: I have no real theoretical references for this. WARNING WARNING WARNING.
run;
As far as the output, it made sense to me. The odds ratios look about right, and the tests meet the eyeball tests of the plots.
Steve
... View more