BookmarkSubscribeRSS Feed
ProfB
Fluorite | Level 6

I'm trying to pool type 3 tests from a regression model using proc genmod, across 10 imputed data sets. Is there a macro to leverage the ods type3 output table I can use to generate a pooled estimate of the p-value (for example, for "X1" in the code snippet below)?

 

 

proc genmod data=data plots=(dfbetacs); 
class id time;
model y=time X1 time*X1 X2*time X3*time /noint dist=normal link=identity id=studyid type3;
repeated subject=id/type=ind ecovb;
weight &weight;
ods output GEEEmpPEst=emp_est type3=type3table; ;
by _imputation_;
run;

proc mianalyze parms (classvar=level)= emp_est;
class time ;
modeleffects time*X1;
run;

 

2 REPLIES 2
SAS_Rob
SAS Employee
While there is no way to combine the Type3 tests in MIANALYZE you can combine the Chi-Square statistics themselves from the Type3 tests using the COMBCHI macro found on Paul Allison's web site.
http://www.ssc.upenn.edu/~allison/


ProfB
Fluorite | Level 6

Thanks, I will give this a shot!

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
  • 2 replies
  • 3155 views
  • 1 like
  • 2 in conversation