Hello,
I was trying to do causal mediation analysis using the CAUSALMED procedure. However, I have got an error message 'ERROR: Procedure CAUSALMED not found.'
I used the following code:
proc causalmed data = Merge.mCPR;
Class region V013 V701 V190 v218C V384 ;
Model V313M (event = last) = V013 V218C;
Mediator v013 = v218c;
covar V013 V701 V190 V218C V384 GR1 GR2 FA1 FA2 FR1 FR2 Distance;
run;
Thanks
Which version of SAS are you running? Causalmed is from one of the later releases and if you are a few releases behind it would not be part of SAS/Stat.
Or perhaps you don't have a license or install for SAS/STAT.
Use
Proc product_status; run;
check the log. If you do not see SAS/Stat in the output then Stat was not installed. At which point you likely should run
Proc setinit; run;
to see if you have a license for SAS/Stat. Again check the log. If Stat is in the output for Setinit then you just need to install the Stat part. If Stat is not in the Setinit output then you are not licensed for SAS/Stat and would need that added to your license.
The CAUSALMED procedure was released in SAS/STAT 14.3 as part of SAS 9.4m5.
Run the following statement and post the value from the Log:
%put &=SYSVLONG;
As ballardw says, you will probably see that your version of SAS is earlier than
SYSVLONG=9.04.01M5
Right. So you are running SAS 9.4M3, which is why PROC CAUSALMED is not found.
I am also running 9.4M3 (on Linux), under a site license to my university. How would I request the upgrade to M5 to be able to use proc causalmed? Thanks in advance.
I have the same question. Have you solved the problem?
As mentioned in this thread, the only way to "solve the problem" is to run a recent version of SAS (SAS 9.4m5 or newer). Someone at your company or university is responsible for installing and maintaining the SAS software. Talk to him or her about upgrading.
If your goal is to learn how to use the CAUSALMED procedure, you can sign up for SAS OnDemand for Academics, which is free to all learners.
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!
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.