BookmarkSubscribeRSS Feed
Teketo
Calcite | Level 5

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

7 REPLIES 7
ballardw
Super User

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.

 

 

Rick_SAS
SAS Super FREQ

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

 

Teketo
Calcite | Level 5
Here is the log detail for  %put &=SYSVLONG;SYSVLONG=9.04.01M3P062415

Rick_SAS
SAS Super FREQ

Right. So you are running SAS 9.4M3, which is why PROC CAUSALMED is not found.

mjwenger
Fluorite | Level 6

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.

Luckyjane
Calcite | Level 5

I have the same question. Have you solved the problem?

Rick_SAS
SAS Super FREQ

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. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 7 replies
  • 2486 views
  • 2 likes
  • 5 in conversation