So ... you are fitting GEE model with PROC GENMOD, ... fine to me.
(just be aware there's also a PROC GEE)
LSMEANS statement can contain all model effects you are interested in. The syntax is :
LSMEANS <model-effects> </ options>;
See here for an example: Home > Analytics > Stat Procs > How to calculate adjusted odds ratios and 95% CIs for GEE using proc genmod? https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-adjusted-odds-ratios-and-95-CIs-for-GEE-using/td-p/408458
If you use "at" - option behind forward slash
lsmeans A / at means;
lsmeans A / at x1=1.2;
lsmeans A / at (x1 x2)=(1.2 0.3);
, then you need multiple obviously.
W.r.t. LSMESTIMATE statement ... Yes, you need one LSMESTIMATE statement per custom hypothesis test among the least squares means. See here :
PharmaSUG2011 -- Paper SP01 CONTRAST and ESTIMATE Statements Made Easy: The LSMESTIMATE Statement Kathleen Kiernan, Randy Tobias, Phil Gibbs, and Jill Tao; SAS Institute Inc., Cary, NC https://www.lexjansen.com/pharmasug/2011/SAS/PharmaSUG-2011-SAS-SP01.pdf
Using and Understanding LSMEANS and LSMESTIMATE David J. Pasta, ICON, San Francisco, CA https://www.lexjansen.com/wuss/2014/103_Final_Paper_PDF.pdf (from WUSS conference ; Western Users of SAS® Software (WUSS))
Koen
... View more