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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 364 views
  • 1 like
  • 2 in conversation