I'm trying to create a mixed model with a multinomial outcome and a random effect. I want to model the probability of a speech tag in a sentence coming at the beginning, middle, or end of a sentence, and I have a large sample of sentences. The outcome can have three levels (beginning, middle, end), the only fixed effect is decade of publication, and I want to account for author as a random effect, since there are multiple sentences in the sample written by the same author.
I want to graph the predicted probability of each type of speech tag (beginning, middle, or end) by decade of publication. I figured I could use LSMEANS to get the predicted probability of each outcome (beginning, middle, end). But, I can't seem to figure out how to do this using SAS.
I've tried to use PROC LOGISTIC, PROC GENMOD, and PROC GLIMMIX. PROC LOGISTIC won't take the random effect into account, but will give me the correct LSMEANS if I use link=glogit. PROC GENMOD will account for the random effect but will not allow link=glogit, and I am not sure how to interpret the LSMEANS when link=cumlogit because the probabilities of the three outcomes do not add up to one. PROC GLIMMIX won't allow LSMEANS for the multinomial distribution. Attached are the codes I've tried. Does anyone have any ideas?
... View more