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

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 16. 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
  • 1 reply
  • 642 views
  • 1 like
  • 2 in conversation