Help using Base SAS procedures

LS means procedure proc genmod binary dependent variable

Reply
N/A
Posts: 1

LS means procedure proc genmod binary dependent variable

I have deduced my final model using proc genmod procedure in SAS. My dependent variable is binary; and I have categorical variables as predictors in my final model. I am interested in understanding which category of a variable is driving the whole effect, and was wondering if it is possible to use LSMEANS statement in genmod. When I try using the LSMEANS statement, I get the following error:

The model does not have a GLM parameterization. This parameterization is required for

         the TEST, LSMEANS, LSMESTIMATE, and SLICE statement. These statements are ignored.

Could someone please let me know the feasibility of using this procedure when we have a binary dependent variable? Thanks.

Best regards,

Abby

Respected Advisor
Posts: 2,655

Re: LS means procedure proc genmod binary dependent variable

Hi Abby,

Which version of SAS/STAT are you using, as the answer may depend on that?

Can you share your PROC GENMOD code?  It should be easy to change the CLASS statement to glm parameterization, which will open up all of these options. Something like:

CLASS <your list of class variables here> / PARAM=GLM;

A quick check showed that the GLM parameterization is the default.  I only got the error you mentioned when I specified PARAM=REF.

An alternative approach, which works with the REF parameterization, would be to use PROC GLIMMIX.

Steve Denham

Ask a Question
Discussion stats
  • 1 reply
  • 1004 views
  • 0 likes
  • 2 in conversation