The script uses the internal `sashelp.heart` dataset from the SASHELP library.
1 Codeblock
PROC PRINT
Erklärung : 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.
Kopiert!
proc print data=sashelp.heart(obs=10);
run;
1
PROC PRINTDATA=sashelp.heart(obs=10);
2
RUN;
2 Codeblock
ODS
Erklärung : 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.
Erklärung : 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.
Kopiert!
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;
Dieses Material wird von We Are Cas "wie besehen" zur Verfügung gestellt. Es gibt keine ausdrücklichen oder stillschweigenden Garantien hinsichtlich der Marktgängigkeit oder Eignung für einen bestimmten Zweck in Bezug auf die hierin enthaltenen Materialien oder Codes. We Are Cas ist nicht verantwortlich für Fehler in diesem Material, wie es jetzt existiert oder existieren wird, noch bietet We Are Cas technischen Support dafür an.
Urheberrechtsinformationen : SAS SAMPLE LIBRARY
Zugehörige Dokumentation
Aucune documentation spécifique pour cette catégorie.
SAS und alle anderen Produkt- oder Dienstleistungsnamen von SAS Institute Inc. sind eingetragene Marken oder Marken von SAS Institute Inc. in den USA und anderen Ländern. ® zeigt die Registrierung in den USA an. WeAreCAS ist eine unabhängige Community-Site und nicht mit SAS Institute Inc. verbunden.
Diese Website verwendet technische und analytische Cookies, um Ihre Erfahrung zu verbessern.
Mehr erfahren.