I think I can help with some of the questions, but may miss some things. First, if you want pairwise odds ratios for genotype, try changing your lsmeans statement to: lsmeans genotype/at sweek=-2 diff oddsratio; For the odds ratio of the covariate, I think you have what you need. The last four lines of the "Odds Ratio Estimates" table should give the results comparing sweek=-2 to sweek=6, as you move out 8 units. If you want to compare sweek=-2 to sweek=8, you must change the portion in parenthesis to: (diff=all at sweek=-2 unit sweek=10) The next part I am really unsure about, but since you are testing odds ratios in the lsmeans statement, you may be able to change the parenthesis clause in the MODEL statement to: (at sweek=-2 unit sweek=8) I think the documentation says that the DIFF option applies to classification main effects. Removing it here may make things easier to follow. As far as the quadratic effect, sweek*sweek is the correct syntax. However, I'm not sure about the use of the AT statement under these conditions--check the documentation as for how interactions of continuous effects are calculated. You may have to use the AT, to get around the use of mean values, I'm just not sure. Residuals for binomials? Would plots=residualpanel get you started? I hope this helps.
... View more