BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Emma_at_SAS
Lapis Lazuli | Level 10

Hello, I have a logistic regression model with a binary outcome and for two of my categorical variables, I want to estimate contrasts for each pair of the levels (within each variable-one variable has three levels, the other variable has 4 levels). How may I do that without using LSMESTIMATE? Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Use the LSMEANS command in PROC SURVEYLOGISTIC, with the LINES and LINESTABLE options.

--
Paige Miller

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Use the LSMEANS command in PROC SURVEYLOGISTIC, with the LINES and LINESTABLE options.

--
Paige Miller
Emma_at_SAS
Lapis Lazuli | Level 10

Thank you @PaigeMiller May you please give me an example or document that I can learn how to do this? Thanks1

PaigeMiller
Diamond | Level 26

You would be helping yourself in the long run by learning to find and use the actual SAS documentation for PROC SURVEYLOGISTIC and look at the LSMEANS commend.

 

In general, you can do an internet search via typing the following command

 

proc surveylogistic site:documentation.sas.com


Another helpful link is this one, which shows all SAS PROCs in alphabetical order

http://documentation.sas.com/?cdcId=pgmmvacdc&cdcVersion=9.4&docsetId=allprodsproc&docsetTarget=proc...

--
Paige Miller
Emma_at_SAS
Lapis Lazuli | Level 10

Thank you @PaigeMiller . Your suggestion for using LSMEANS worked very well 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 709 views
  • 2 likes
  • 2 in conversation