BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pink_poodle
Barite | Level 11

What is the code to re-set mediator reference level in causalmed? I want to re-set "Mediator probability modeled" from 0 to 1. This does not work:

evaluate "_Default" _mediator = '1';

Many Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
SAS_Rob
SAS Employee

Check this example which shows how you can use the DESCENDING option on the CLASS statement.

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_examples03.htm 

 

Likewise you could also use the REF= for the individual variables.

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_syntax04.htm 

View solution in original post

2 REPLIES 2
SAS_Rob
SAS Employee

Check this example which shows how you can use the DESCENDING option on the CLASS statement.

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_examples03.htm 

 

Likewise you could also use the REF= for the individual variables.

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_syntax04.htm 

pink_poodle
Barite | Level 11
Yes, it reads "Mediator probability modeled" is 1 now. The results table did not change. I guess it does not matter which one is the reference level for binary mediator.

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 457 views
  • 1 like
  • 2 in conversation