keckk wrote: I reply in bold: Thank you very much for your detailed response. I have changed the lsmeans statement as you specified, and get all pairwise oddsratios with corresponding p-values in the "Differences of genotype Least Squares Means" table, but they are always in reference to the variable sweek i.e. either I define a value using the AT= suboption, of if I do not, proc glimmix takes the mean value of sweek per default. This is as it should be. The inclusion of the continuous covariate by group interaction means that the lsmeans and ORs will be different at different values of sweek. I guess, that's why the p-values in the "Differences of genotype Least Squares Means" table are not the same as given in the "Solution for fixed effects" (at least the p-values for the three comparisons of the genotype levels with the reference level) - Am I right ? Which p-values are the ones to give for the reader, apart from the fact that I have only three out of six in the "Solution for fixed effects". I would report the comparisons at various values of sweek--something early on, something near the mean, and something at the end of observed values of sweek. Look for consistency across time, or changes in consistency. If I drop the diff=all suboption from the parenthesis clause, I will only have confidence limits for the comparisons of the genotype levels with the reference level (which per default and in my case is the last level) in the "Odds Ratio Estimates" table. My bad. I was hoping that by dropping it that it would leave comparisons for the covariates... For the odds ratio of the covariate, yes, I get the oddsratios comparing sweek= -2 to sweek= 6 for each of the genotypes. But how can I know if the changes over time has been significant ? How can I produce p-values for the targeted comparisons ? sweek is a continuous variable, and the overall effect is significant, but the lsmeans statement is only for class effects I am a bit confused ... Me too, and I hope this doesn't confuse things even more. I looked for a way to add confidence limits to the odds ratio estimates in the MODEL statement, in the hope that you could look at overlap, or inclusion of 1, as a measure of significance. The ESTIMATE statement doesn't allow for AT=, and the LSMESTIMATE wouldn't let me use multiple values. Maybe someone has a work-around, but right now I am stumped.
... View more