BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
MadQuant
Obsidian | Level 7

Hi all, 

I am trying out various matching methods to do run regressions. Kudos to the fact that

PROC PSMATCH

was added a few years ago. So I was able to carry out propensity score matching sucessfully. 

 

But I also wanted to try out entropy balancing and found this recently added document.  (https://documentation.sas.com/doc/en/pgmsascdc/v_031/statug/statug_psmatch_examples10.htm)

So I followed it. 

 

However, my sas spits out an error message.

 

proc psmatch data=drugs;
class Drug Gender;
eweight treatvar=Drug(Treated='Drug_X') balancevars=(Gender Age BMI) nlargestwgt=5;
-------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.

 

 

FYI, running PROC PRODUCT_STATUS gives me below. Basically Base SAS version is 9.4M6, SAS/STAT 15.1.

For Base SAS Software ...
   Custom version information: 9.4_M6
   Image version information: 9.04.01M6P110718
For SAS/STAT ...
   Custom version information: 15.1
For SAS/GRAPH ...
   Custom version information: 9.4_M6
For SAS/ETS ...
   Custom version information: 15.1
For SAS/FSP ...
   Custom version information: 9.4_M6
For SAS/OR ...
   Custom version information: 15.1
For SAS/AF ...
   Custom version information: 9.4_M6
For SAS/IML ...
   Custom version information: 15.1
For SAS/QC ...
   Custom version information: 15.1
For SAS/SHARE ...
   Custom version information: 9.4_M5
For SAS/ASSIST ...
   Custom version information: 9.4
   Image version information: 9.04.01M0P061913
For SAS/CONNECT ...
   Custom version information: 9.4_M6
For SAS/EIS ...
   Custom version information: 9.4_M6
For SAS/GIS ...
   Custom version information: 9.4_M6
For SAS Integration Technologies ...
   Custom version information: 9.4_M6
For High Performance Suite ...
   Custom version information: 2.2_M7
For SAS/ACCESS Interface to PC Files ...
   Custom version information: 9.4_M6
For SAS/ACCESS Interface to Teradata ...
   Custom version information: 9.46

Any help is much appreciated. Thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
OsoGris
SAS Employee
Insofar as I know, entropy balancing in PROC PSMATCH requires SAS Viya.

View solution in original post

2 REPLIES 2
OsoGris
SAS Employee
Insofar as I know, entropy balancing in PROC PSMATCH requires SAS Viya.
MadQuant
Obsidian | Level 7

Ha you're right! Thanks. 

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!

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
  • 1014 views
  • 1 like
  • 2 in conversation