The NPAR1WAY Procedure 
PROC NPAR1WAY Statement 
The PROC NPAR1WAY statement invokes the procedure and optionally identifies the input data set or requests particular analyses. By default, the procedure uses the most recently created SAS data set and omits missing values from the analysis. If you do not specify any analysis options, PROC NPAR1WAY performs an analysis of variance (ANOVA option), tests for location differences (WILCOXON, MEDIAN, SAVAGE, and VW options), and performs empirical distribution function tests (EDF option).
Table 62.2 lists the options available with the PROC NPAR1WAY statement. Descriptions follow in alphabetical order.
Task 
Options 

Specify the input data set 

Include missing CLASS values 

Suppress all displayed output 

Request analyses 

Set confidence level 

Suppress continuity correction 

Request plots 
You can specify the following options in the PROC NPAR1WAY statement.
requests an analysis of AnsariBradley scores. See the section AnsariBradley Scores for more information.
specifies the level of the confidence limits for location shift, which you request with the HL option. The value of must be between 0 and 1, and the default is 0.05. A confidence level of produces % confidence limits. The default of ALPHA=0.05 produces 95% confidence limits for the HodgesLehmann estimate.
requests an analysis of Conover scores. See the section Conover Scores for more information.
suppresses the continuity correction for the Wilcoxon twosample test and the SiegelTukey twosample test. See the section Continuity Correction for more information.
requests the onesided KolmogorovSmirnov and statistics and their asymptotic pvalues, in addition to the twosided statistic produced by the EDF option for twosample data. The D option invokes the EDF option. The statistics and are provided by default if you request exact KolmogorovSmirnov statistics with the KS option in the EXACT statement for twosample data. See the section Tests Based on the Empirical Distribution Function for details about KolmogorovSmirnov statistics.
names the SAS data set to be analyzed by PROC NPAR1WAY. If you omit the DATA= option, the procedure uses the most recently created SAS data set.
requests statistics based on the empirical distribution function. These include the KolmogorovSmirnov and Cramervon Mises tests and, if there are only two classification levels, the Kuiper test. See the section Tests Based on the Empirical Distribution Function for more information.
The EDF option produces the KolmogorovSmirnov statistic for twosample data. You can request the onesided and statistics for twosample data with the D option.
requests HodgesLehmann estimation of the location shift for twosample data. The HL option provides asymptotic confidence limits for the location shift. These are sometimes known as Moses confidence limits. See the section HodgesLehmann Estimation of Location Shift for details. You can specify the level of the confidence limits by using the ALPHA= option. The default of ALPHA=0.5 produces 95% confidence limits for the location shift.
requests an analysis of Klotz scores. See the section Klotz Scores for more information.
requests an analysis of median scores. When there are two classification levels, this option produces the twosample median test. When there are more than two samples, this option produces the multisample median test, which is also known as the BrownMood test. See the section Median Scores for more information.
treats missing values of the CLASS variable as a valid class level.
requests an analysis of Mood scores. See the section Mood Scores for more information.
suppresses the display of all output. You can use the NOPRINT option when you only want to create an output data set. Note that this option temporarily disables the Output Delivery System (ODS). For more information, see Chapter 20, Using the Output Delivery System.
requests plots for PROC NPAR1WAY to produce by using ODS Graphics. When you specify only one plotrequest, you can omit the parentheses around the request. For example:
plots=all plots=wilcoxonboxplot plots=(wilcoxonboxplot edfplot) plots(only)=(medianplot normalboxplot)
You must enable ODS Graphics before requesting plots, as shown in the following statements:
ods graphics on; proc npar1way plots=wilcoxonboxplot; variable response; class treatment; run; ods graphics off;
See Figure 62.7, Output 62.1.2, Output 62.1.4, and Output 62.2.2 for examples of the ODS graphical displays available in PROC NPAR1WAY. For general information about ODS Graphics, see Chapter 21, Statistical Graphics Using ODS.
If you do not specify the PLOTS= option but have enabled ODS Graphics, then PROC NPAR1WAY produces all plots associated with the analyses you request.
GlobalPlotOptions
Globalplotoptions apply to all plots produced by PROC NPAR1WAY, unless they are altered by a specific plotoption. The following globalplotoptions are available with the PLOTS= option:
suppresses the pvalues that are displayed on the plots by default.
suppresses the default plots and requests only the plots specified as plotrequests.
displays pvalues on the plots. This is the default.
You cannot specify both STATS and NOSTATS as globalplotoptions.
PlotRequests
The following plotrequests are available with the PLOTS= option:
requests a box plot of AnsariBradley scores. This plot is associated with the AnsariBradley analysis, which you request with the AB option.
requests all plots associated with the specified analyses. This is the default if you do not specify the PLOTS(ONLY) option.
requests a box plot of the raw data. This plot is associated with the analysis of variance based on the raw data, which you request with the ANOVA option.
requests a box plot of Conover scores. This plot is associated with the Conover analysis, which you request with the CONOVER option.
requests a box plot of raw data scores. This plot is associated with the analysis that uses input data as scores, which you request with the SCORES=DATA option.
requests an empirical distribution plot. This plot is associated with the analyses based on the empirical distribution function, which you request with the EDF option.
requests a box plot of Klotz scores. This plot is associated with the Klotz analysis, which you request with the KLOTZ option.
requests a stacked bar chart showing the frequencies above and below the overall median. This plot is associated with the median score analysis, which you request with the MEDIAN option.
requests a box plot of Mood scores. This plot is associated with the Mood analysis, which you request with the MOOD option.
suppresses all plots.
requests a box plot of Savage scores. This plot is associated with the Savage analysis, which you request with the SAVAGE option.
requests a box plot of SiegelTukey scores. This plot is associated with the SiegelTukey analysis, which you request with the ST option.
requests a box plot of Van der Waerden (normal) scores. This plot is associated with the Van der Waerden analysis, which you request with the VW or NORMAL option.
requests a box plot of Wilcoxon scores. This plot is associated with the Wilcoxon analysis, which you request with the WILCOXON option.
If you request a plot but do not request the corresponding analysis, then PROC NPAR1WAY automatically invokes that analysis. For example, if you specify PLOTS=CONOVERBOXPLOT but do not also specify the CONOVER option in the PROC NPAR1WAY statement, PROC NPAR1WAY produces the Conover scores analysis as well as the requested box plot.
PlotOptions
The following plotoptions are available for individual plots:
suppresses the pvalues that are displayed on the plot by default.
displays pvalues on the plot. This is the default.
You cannot specify both STATS and NOSTATS as plotoptions for the same plot.
If you specify NOSTATS as a globalplotoption, specifying STATS as an individual plotoption overrides the globalplotoption for the individual plot and displays statistics on the plot.
requests an analysis of Savage scores. See the section Savage Scores for more information.
requests an analysis that uses input data as scores. This option gives you the flexibility to construct any scores for your data with the DATA step and then analyze these scores with PROC NPAR1WAY. See the section Scores for Linear Rank and OneWay ANOVA Tests for more information. Using the SCORES=DATA option for raw (unscored) twosample data produces a permutation test known as Pitman’s test.
requests an analysis of SiegelTukey scores. See the section SiegelTukey Scores for more information.
requests an analysis of Van der Waerden (normal) scores. See the section Van der Waerden (Normal) Scores for more information.
requests an analysis of Wilcoxon scores. When there are two classification levels, or two samples, this option produces the Wilcoxon ranksum test. For any number of classification levels, this option produces the KruskalWallis test. See the section Wilcoxon Scores for more information.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.