BookmarkSubscribeRSS Feed
riyaaora275
Obsidian | Level 7

I have used the following code -

 

proc psmatch data = x;
class a b c cate;
psmodel cate(Treated = 'On') = a b c d ;
match method = greedy(k=1)  ;
assess lps var=(a b c d )/plots = all weight = none;
output out(obs=match)= y;
run;

riyaaora275_0-1596636314188.png

however the treated group has 6000 obs and control has 8000 obs , then why is the number of obs used 1134 and 1411 ?

3 REPLIES 3
Reeza
Super User

Do you have missing values in your variables, specifically a, b,c, d?

 


@riyaaora275 wrote:

I have used the following code -

 

proc psmatch data = x;
class a b c cate;
psmodel cate(Treated = 'On') = a b c d ;
match method = greedy(k=1)  ;
assess lps var=(a b c d )/plots = all weight = none;
output out(obs=match)= y;
run;

riyaaora275_0-1596636314188.png

however the treated group has 6000 obs and control has 8000 obs , then why is the number of obs used 1134 and 1411 ?


 

Reeza
Super User

Any row with missing data for a, b, c, or d will be excluded from the analysis. If you need it included, there may be an option to account for that or you can recode them to a different value if that makes sense given the context. 

 

Or you can impute them ahead of time. There are multiple options but it definitely requires subject matter expertise. 

 

 

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
  • 3 replies
  • 1329 views
  • 0 likes
  • 2 in conversation