The MIANALYZE Procedure

Example 77.6 Reading GLM Results from PARMS= and XPXI= Data Sets

(View the complete code for this example.)

This example creates data sets that contains parameter estimates and corresponding matrices computed by a general linear model analysis for a set of imputed data sets. These estimates are then combined to generate valid statistical inferences about the model parameters.

The following statements use PROC GLM to generate the parameter estimates and matrix for each imputed data set:

ods select none;
proc glm data=outmi;
   model Oxygen= RunTime RunPulse/inverse;
   by _Imputation_;
   ods output ParameterEstimates=glmparms
              InvXPX=glmxpxi;
quit;
ods select all;

Because of the ODS SELECT statements, no output is displayed. The following statements display (in Output 77.6.1) the output parameter estimates and standard errors from PROC GLM for the first two imputed data sets:

proc print data=glmparms (obs=6);
   var _Imputation_ Parameter Estimate StdErr;
   title 'GLM Model Coefficients (First Two Imputations)';
run;

Output 77.6.1: PROC GLM Model Coefficients

GLM Model Coefficients (First Two Imputations)

Obs_Imputation_ParameterEstimateStdErr
11Intercept86.544033910.00726811
21RunTime-2.82231080.32824165
31RunPulse-0.05872920.05854109
42Intercept83.02073038.88996885
52RunTime-3.00022880.33847204
62RunPulse-0.02491030.05137859


The following statements display (in Output 77.6.2) matrices from PROC GLM for the first two imputed data sets:

proc print data=glmxpxi (obs=8);
   var _Imputation_ Parameter Intercept RunTime RunPulse;
   title 'GLM X''X Inverse Matrices (First Two Imputations)';
run;

Output 77.6.2: PROC GLM Matrices

GLM X'X Inverse Matrices (First Two Imputations)

Obs_Imputation_ParameterInterceptRunTimeRunPulse
11Intercept12.696250656-0.067849956-0.069826009
21RunTime-0.0678499560.0136594055-0.000436938
31RunPulse-0.069826009-0.0004369380.0004344762
41Oxygen86.544033929-2.822310769-0.058729234
52Intercept10.784620785-0.091107072-0.057201387
62RunTime-0.0911070720.0156332765-0.000426902
72RunPulse-0.057201387-0.0004269020.0003602208
82Oxygen83.020730343-3.000228818-0.024910305


The standard errors for the estimates in the output Glmparms data set are needed to create the covariance matrix from the matrix. The following statements use the MIANALYZE procedure with input PARMS= and XPXI= data sets to produce the same results as displayed in Output 77.3.2 and Output 77.3.3 in Example 77.3:

proc mianalyze parms=glmparms xpxi=glmxpxi edf=28;
   modeleffects Intercept RunTime RunPulse;
run;