BookmarkSubscribeRSS Feed
Liamb
Obsidian | Level 7

Hello,

How to apply stepwise selection with proc hpgenselect to matched data?

Thanks

proc hpgenselect data=tab;
class paired var1 var2 var3 var4 ;
model wbc= var1 var2 var3 var4/ dist = negbin link=log ; 
/*random intercept / subject=paired;*/
selection method=stepwise details=all;

run;
3 REPLIES 3
sbxkoenk
SAS Super FREQ

Matched data? You mean data where treated units are matched to control units? Or you mean pre- and post- (treatment) measurements?

 

I am moving this topic to "Statistical Procedures" - board where it belongs.

 

Koen

Liamb
Obsidian | Level 7

I mean data where treated units are matched to control units

SteveDenham
Jade | Level 19

If you are locked into model selection techniques like stepwise, and you realize that it really isn't suited to mixed models, consider treating the difference between the treated and control subjects for each pair as your response variable. Without knowing your data structure, consider this:

 

proc hpgenselect data=tab;
class paired var1 var2 var3 var4 ;
model wbc_diff= var1 var2 var3 var4/ dist = negbin link=log ; 
selection method=stepwise details=all;
run;

The key here is in calculating the response variable wbc_diff. There are several ways, but all of them depend on the current structure of the dataset "tab".

You might be happier using method=lasso/choose=aicc, as it provides at lest some protection against type I error inflation due to multiple testing.

 

SteveDenham

 

 

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 997 views
  • 0 likes
  • 3 in conversation