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

Hello Community,

I have this code to test within the subject effect for my data set.
I found out that the QIC of the type =ind is the best fit for the model but here is my next question; how do i test for the overall within-subject effect? Thanks

proc genmod data=d003   order=data;
class y_variable  sub_id  Position;
model y_variable =Time_in_Seconds Resistance__ohms Force_N   Position  / d=bin link=logit;
 repeated subject= sub_id / type=ind; *better model with better QIC;
run;
quit;

 

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

You would have to put your SUBJECT= variable in the MODEL statement, but this is likely to cause problems in the GEE fitting algorithm since that will add the need to estimate a parameter for each subject. Keep in mind that one of the main purposes and advantages of the GEE method is to avoid the need to estimate the possibly large number of subject parameters so that you can obtain good estimates and tests of the other effects in the model. The subject parameters are typically regarded as nuisance parameters with primary interest in the other parameters. 

View solution in original post

1 REPLY 1
StatDave
SAS Super FREQ

You would have to put your SUBJECT= variable in the MODEL statement, but this is likely to cause problems in the GEE fitting algorithm since that will add the need to estimate a parameter for each subject. Keep in mind that one of the main purposes and advantages of the GEE method is to avoid the need to estimate the possibly large number of subject parameters so that you can obtain good estimates and tests of the other effects in the model. The subject parameters are typically regarded as nuisance parameters with primary interest in the other parameters. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 304 views
  • 1 like
  • 2 in conversation