The script uses the internal `sashelp.heart` dataset from the SASHELP library.
1 Bloc de code
PROC PRINT
Explication : This block uses PROC PRINT to display the first 10 observations of the `sashelp.heart` dataset. This allows for a quick check of the data structure and content before the imputation analysis.
Copié !
proc print data=sashelp.heart(obs=10);
run;
1
PROC PRINTDATA=sashelp.heart(obs=10);
2
RUN;
2 Bloc de code
ODS
Explication : This block configures the Output Delivery System (ODS). It selects specific output objects (`MissPattern`, `Flux`, `FluxPlot`, `Corr`) that will be generated by the MI procedure, and enables ODS graphics, allowing for the creation of visualizations thereafter.
Explication : This block executes the multiple imputation procedure (PROC MI). It is applied to the `sashelp.heart` dataset. The options `simple flux nimpute=0 displaypattern=nomeans` are used to analyze missing data patterns (`simple`), specify the flux imputation method (`flux`), but without generating imputations (`nimpute=0`), and display the missing data pattern without means (`displaypattern=nomeans`). `class _character_` declares all character variables as class variables, `var _all_` includes all variables in the analysis, and `fcs` specifies the use of the 'Fully Conditional Specification' method for imputation.
Copié !
proc mi data=sashelp.heart simple flux nimpute=0
displaypattern=nomeans;
class _character_;
var _all_;
fcs;
run;
1
PROC MIDATA=sashelp.heart SIMPLE flux nimpute=0
2
displaypattern=nomeans;
3
class _character_;
4
var _all_;
5
fcs;
6
RUN;
Ce matériel est fourni "tel quel" par We Are Cas. Il n'y a aucune garantie, expresse ou implicite, quant à la qualité marchande ou à l'adéquation à un usage particulier concernant le matériel ou le code contenu dans les présentes. We Are Cas n'est pas responsable des erreurs dans ce matériel tel qu'il existe maintenant ou existera, et We Are Cas ne fournit pas de support technique pour celui-ci.
Informations de Copyright : SAS SAMPLE LIBRARY
Documentation liée
Aucune documentation spécifique pour cette catégorie.
SAS et tous les autres noms de produits ou de services de SAS Institute Inc. sont des marques déposées ou des marques de commerce de SAS Institute Inc. aux États-Unis et dans d'autres pays. ® indique un enregistrement aux États-Unis. WeAreCAS est un site communautaire indépendant et n'est pas affilié à SAS Institute Inc.
Ce site utilise des cookies techniques et analytiques pour améliorer votre expérience.
En savoir plus.