BookmarkSubscribeRSS Feed
RobertWF1
Quartz | Level 8

I'm running Gary King's CEM (Coarsened Exact Matching) macro (download here) in the SAS language for a case control study.

 

I'm using the following macro call format:

 

options source2;
%include "D:\Project_Files\Matched_Cohort_Study\CEM_SAS_Macro.sas";

%CEM (
lib = out,
dataset = analysis_data,
id = MEMBER_ID,
treat = A,
keep = X1 X2 X3,
del_miss = 0,
match_type = N,
method = "Sturges",
path_graph = D:\Project_Files\Matched_Cohort_Study\,
report = "on"
);

 

The macro runs without error, but I don't understand the output and there is little documentation to help.

 

Is there a matched output dataset I can use to estimate the average treatment effect on my outcome variable Y?

 

Thanks!

2 REPLIES 2
yabwon
Amethyst | Level 16

How about starting wit this link:

https://gking.harvard.edu/pages/contact

?

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



RobertWF1
Quartz | Level 8
Yes, I'll have to contact Gary King.

I may try running the cem package for R, which is better documented and user friendly.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1624 views
  • 0 likes
  • 2 in conversation