BookmarkSubscribeRSS Feed
ppagan95
Calcite | Level 5

Hello all,

 

I have a weighted dataset. I want to do a mediation analysis using PROC Causalmed, including covariates, weights, and boostrap confidence intervals. From the SAS/STAT 15.2 manual it does say that weights are now supported. However, when I use the weight statement in SAS 9.4 and Enterprise 8.2, the weight statement is highlighted red. When I run the code it shows that the analysis is weighted, there are no errors or warnings. However, from searching online the red text seems to indicate an error. Should I be concerned about a potential issue in the code or results?

1 REPLY 1
FreelanceReinh
Jade | Level 19

Hello @ppagan95 and welcome to the SAS Support Communities!

 

Don't worry. The WEIGHT statement was already introduced in SAS/STAT 15.1 (see documentation What’s New in SAS/STAT 15.1). So, if you are using this or a later version (which you can check in the log or in the output of proc product_status; run;), this feature works -- whether the syntax highlighting of some program editor recognizes it or not. I have seen similar incorrect red highlighting of newly introduced keywords in other procedures. People running their programs in batch mode or using a different editor might not even notice the highlighting. A clean log and output is what counts.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 544 views
  • 0 likes
  • 2 in conversation