The MI Procedure
Example 76.8 FCS Method with Trace Plot
(View the complete code for this example.)
This example uses FCS methods to impute missing values in both continuous and classification variables in a data set with an arbitrary missing pattern. The following statements use a logistic regression method to impute values of the classification variable Species:
ods graphics on;
proc mi data=Fish3 seed=1305417 nimpute=5 out=outex8;
class Species;
fcs plots=trace
logistic(Species= Length Width Length*Width /details link=glogit);
var Species Length Width;
run;
The "Model Information" table in Output 76.8.1 describes the method and options used in the multiple imputation process. By default, a regression method is used to impute missing values in each continuous variable.
Output 76.8.1: Model Information
The "FCS Model Specification" table in Output 76.8.2 describes methods and imputed variables in the imputation model. The procedure uses the logistic regression method to impute the variable Species, and the regression method to impute variables Height and Width.
Output 76.8.2: FCS Model Specification
The "Missing Data Patterns" table in Output 76.8.3 lists distinct missing data patterns with corresponding frequencies and percentages.
Output 76.8.3: Missing Data Patterns
When you use the DETAILS keyword in the LOGISTIC option, parameters estimated from the observed data and the parameters used in each imputation are displayed in the "Logistic Models for FCS Method" table in Output 76.8.4.
Output 76.8.4: FCS Logistic Regression Model for Species
| Logistic Models for FCS Method | |||||||
|---|---|---|---|---|---|---|---|
| Imputed Variable | Effect | Species | Imputation | ||||
| 1 | 2 | 3 | 4 | 5 | |||
| Species | Intercept | Parkki | -2.172588 | -2.324226 | -2.418362 | -1.832884 | -0.929242 |
| Species | Intercept | Perch | 1.878263 | 0.445966 | 1.585375 | 0.919562 | 1.547549 |
| Species | Length | Parkki | 6.107448 | 6.377145 | 2.447654 | -1.004869 | 2.363073 |
| Species | Length | Perch | -5.493897 | -4.711566 | -7.778194 | -5.400749 | -0.053788 |
| Species | Width | Parkki | -8.624156 | -6.965179 | -5.718729 | -0.997851 | -2.978868 |
| Species | Width | Perch | 8.111323 | 5.608314 | 9.426901 | 5.502755 | 1.241239 |
| Species | Length*Width | Parkki | -0.006404 | 2.138551 | 0.883903 | 0.072525 | -0.152662 |
| Species | Length*Width | Perch | 1.151183 | 1.278025 | 1.117492 | -0.195462 | 0.672738 |
With ODS Graphics enabled, the PLOTS=TRACE option displays trace plots of means for all continuous variables by default, as shown in Output 76.8.5 and Output 76.8.6. The dashed vertical lines indicate the imputed iterations—that is, the variable values used in the imputations. The plot shows no apparent trends for the two variables.
Output 76.8.5: Trace Plot for Length

Output 76.8.6: Trace Plot for Width

The following statements list the first 10 observations of the data set Outex8 in Output 76.8.7:
proc print data=outex8(obs=10); title 'First 10 Observations of the Imputed Data Set'; run;
Output 76.8.7: Imputed Data Set
After the completion of five imputations by default, the "Variance Information" table in Output 76.8.8 displays the between-imputation variance, within-imputation variance, and total variance for combining complete-data inferences for continuous variables. The relative increase in variance due to missingness, the fraction of missing information, and the relative efficiency for each variable are also displayed. These statistics are described in the section Combining Inferences from Multiply Imputed Data Sets.
Output 76.8.8: Variance Information
The "Parameter Estimates" table in Output 76.8.9 displays a 95% mean confidence interval and a t statistic with its associated p-value for each of the hypotheses requested with the default MU0=0 option.
Output 76.8.9: Parameter Estimates
Copyright © SAS Institute Inc. All rights reserved.