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