BookmarkSubscribeRSS Feed
joe66
Calcite | Level 5

Hi, 

 

I am not sure whether SAS can handle more than one predictor variables in Causalmed procedure. The case is : I got a three level categorical predictor, and created two binary variables on the basis of this three level categorical predictor variable, may I include the two binary predictor variables in Causalmed procedure?

 

All the examples about Causalmed in SAS manual only have one predictor.

 

Thanks,

 

Joe 

3 REPLIES 3
SAS_Rob
SAS Employee

CAUSALMED can handle more than one predictor variable or covariate in the MODEL statement or as predictors for the mediator variable.  But it can handle only one mediator variable like in this example.

http://go.documentation.sas.com/?docsetId=statug&docsetVersion=14.3&docsetTarget=statug_causalmed_ex...

 

joe66
Calcite | Level 5

Hi Rob,

 

It seems that SAS can not handle more than one treatment variable in Causalmed procedure, as I got the error message "ERROR: You cannot specify more than one treatment (predictor) variable on the right-hand side of the MEDIATOR statement." when I included two treatment variables in model statement and mediator statement. Please advise.

 

Thanks,

 

Joe

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 3 replies
  • 1325 views
  • 0 likes
  • 2 in conversation