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

I am using PROC LOGISTIC and I want to use lsmestimate to estimate OR and 95% CI for some contrasts. I wonder if this is appropriate to prepare an apriori list of contrasts of interest and then use lsmeans and pick up the values in the list and the OR values would be the same as if I was using lsmestimate. By using lsmeans instead of lsmestimate, I want to skip any error when defining the contrasts in lsmestimate. By preparing my list of contrast before running lsmeans, I want to avoid picking the significant differences when I finally see the results table. I appreciate your thoughts on this. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

If you are comparing one level to another, this can be done via LSMEANS, no need for LSMESTIMATE. If you want to compare a linear combination of LSMEANS, where the coefficients of your combination are NOT all 0 or 1 or –1, for example 0.5*(level 1)–0.67*(level 2)+0.33*(Level 3), then you need LSMESTIMATE.

--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26

If you are comparing one level to another, this can be done via LSMEANS, no need for LSMESTIMATE. If you want to compare a linear combination of LSMEANS, where the coefficients of your combination are NOT all 0 or 1 or –1, for example 0.5*(level 1)–0.67*(level 2)+0.33*(Level 3), then you need LSMESTIMATE.

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 983 views
  • 1 like
  • 2 in conversation