The script uses the internal `sashelp.heart` dataset from the SASHELP library.
1 Bloque de código
PROC PRINT
Explicación : 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.
¡Copiado!
proc print data=sashelp.heart(obs=10);
run;
1
PROC PRINTDATA=sashelp.heart(obs=10);
2
RUN;
2 Bloque de código
ODS
Explicación : 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.
Explicación : 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.
¡Copiado!
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;
Este material se proporciona "tal cual" por We Are Cas. No hay garantías, expresas o implícitas, en cuanto a la comerciabilidad o idoneidad para un propósito particular con respecto a los materiales o el código contenidos en este documento. We Are Cas no es responsable de los errores en este material tal como existe ahora o existirá, ni We Are Cas proporciona soporte técnico para el mismo.
Información de copyright : SAS SAMPLE LIBRARY
Documentación relacionada
Aucune documentation spécifique pour cette catégorie.
SAS y todos los demás nombres de productos o servicios de SAS Institute Inc. son marcas registradas o marcas comerciales de SAS Institute Inc. en los EE. UU. y otros países. ® indica registro en los EE. UU. WeAreCAS es un sitio comunitario independiente y no está afiliado a SAS Institute Inc.
Este sitio utiliza cookies técnicas y analíticas para mejorar su experiencia.
Saber más.