Statistique

Example documentation for PROC NPAR1WAY

Este código también está disponible en: Deutsch Español Français
Nivel de dificultad
Principiante
Publicado el :
This SAS© script demonstrates the application of the NPAR1WAY procedure to perform non-parametric analyses. It initializes an internal dataset named 'React' using 'datalines' for the variables 'Stim' and 'Time'. Subsequently, it invokes PROC NPAR1WAY with the 'hl' option for Hodges-Lehmann estimation and an alpha significance level of 0.02. The procedure analyzes 'Time' by groups defined by 'Stim' and requests exact p-values for Hodges-Lehmann estimation. The ODS output is specifically filtered to display only the 'WilcoxonScores' and 'HodgesLehmann' tables.
Análisis de datos

Type : CREATION_INTERNE


The 'React' dataset is created directly within the script using a DATA STEP statement and the 'datalines' clause to integrate the data.

1 Bloque de código
DATA STEP Data
Explicación :
This DATA STEP block is responsible for creating the 'React' dataset. It reads two variables, 'Stim' and 'Time', whose values are directly provided via the 'datalines' clause. The mention ' @code_sas/@TEMPLATE.sas' in the INPUT statement appears to be a syntactic anomaly or a malformed comment, but it does not affect the data input by the 'datalines'.
¡Copiado!
1DATA React;
2 INPUT Stim Time @code_sas/@TEMPLATE.sas;
3 DATALINES;
41 1.94 1 1.94 1 2.92 1 2.92 1 2.92 1 2.92 1 3.27
51 3.27 1 3.27 1 3.27 1 3.70 1 3.70 1 3.74
62 3.27 2 3.27 2 3.27 2 3.70 2 3.70 2 3.74
7;
8 
2 Bloque de código
PROC NPAR1WAY
Explicación :
This block executes the NPAR1WAY procedure, designed for non-parametric analyses. It uses the previously created 'React' dataset. The 'hl' option activates Hodges-Lehmann estimation, and 'alpha=.02' sets the significance level for confidence intervals. The variable 'Stim' is designated as the classification variable, and 'Time' as the analysis variable. The 'exact hl' statement requests exact p-values for Hodges-Lehmann estimation. Finally, 'ods select' filters the ODS output to present only the Wilcoxon scores and Hodges-Lehmann estimates tables.
¡Copiado!
1PROC NPAR1WAY hl alpha=.02 DATA=React;
2 class Stim;
3 var Time;
4 exact hl;
5 ods select WilcoxonScores HodgesLehmann;
6RUN;
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.