Hi, I am trying to obtain adjusted means from genmod for an independent variable (crit1, 2 levels) at different levels of a covariate (disease, 4 levels: IBD, Pso, Art, MDD). Following is the log of the procedure. 14393 proc genmod data=bullying.anaset ; 14394 a = _mean_; 14395 b = _resp_; 14396 d = b/a + log(a); 14397 variance var = a**2; 14398 deviance dev =d; 14399 class crit1 sex family ter_edu safe disease; 14400 model impairment =crit1 disease age nights mobtime sex family ter_edu safe /link=log 14400! type3; 14401 lsmeans crit1/ at disease='Art'; -- 22 202 14402 lsmeans crit1/ at disease='Pso'; -- 22 202 14403 lsmeans crit1/ at disease='MDD'; -- 22 202 14404 lsmeans crit1/ at disease='IBD'; -- 22 202 ERROR 22-322: Syntax error, expecting one of the following: ;, ALPHA, CL, CORR, COV, DIFF, E, EPSILON, SINGULAR. ERROR 202-322: The option or parameter is not recognized and will be ignored. 14405 where contract ne 3 and job=1; 14406 run; Despite I used the sintax as suggested in the support documentation, SAS 9.2 does not recognize the AT option. Could anyone show me how to do it right? Thank you very much, L.
... View more