Programming the statistical procedures from SAS

Categorical variables & PROC MIANALYZE?

Reply
New Contributor
Posts: 2

Categorical variables & PROC MIANALYZE?

I am performing a PROC PHREG after a PROC MI, where I also have categorical variables with more than 2 levels. 
The problem comes with the PROC MIANALYZE that follows, because it combines the parameter estimates, but I would like also to combine the global Chi-square tests for these multilevel variables. I found the p-values coming from these tests in the PROC PHREG output in a table named "Type 3 test" for each iteration, but how do I pass them to the PROC MIANALYZE?
 
P.S. I'm using SAS University Edition.
 
#######################################
My code:
 
PROC MI DATA=data1 NIMPUTE=10 out=data2 seed=54321;
MCMC plots=trace plots=acf ;
VARvar1 var2;
RUN;

PROC PHREG DATA=data2;
FORMAT var3 var3Fmt. var4 var4Fmt. var5 var5Fmt. var6 var6Fmt.
var7 var7Fmt. var8 var8Fmt. var9 var9Fmt.;
CLASS var4 (REF=FIRST) var5 (REF='No') var6 (REF='No')
var7 (REF='No') var8 (REF='No') var9 (REF='No') var3 (REF='< 3.4') / PARAM=REF;
MODEL days*death(0) = var3 var4 var10 var11 var12 var9 var7 var12 var13 var14 var15 var2/ RISKLIMIT;
by _imputation_;
ODS OUTPUT ParameterEstimates=a_mvn;
RUN;
QUIT;

PROC MIANALYZE parms(CLASSVAR=CLASSVAL)=a_mvn;
CLASS var4 var5 var6 var7 var8 var1 var2;
MODELEFFECTS var3 var4 var10 var11 var12 var9 var7 var12 var13 var14 var15 var2;
ODS OUTPUT PARAMETERESTIMATES=risultati;
RUN;
Ask a Question
Discussion stats
  • 0 replies
  • 177 views
  • 0 likes
  • 1 in conversation