Chapter Contents |
Previous |
Next |
The UNIVARIATE Procedure |
PROC UNIVARIATE <option(s)>; |
To do this | Use this option | |
---|---|---|
Specify the input data set | DATA= | |
Specify the input data set that contains annotate variables | ANNOTATE= | |
Specify the SAS catalog to save high-resolution graphics output | GOUT= | |
Control the statistical analysis | ||
Request all statistics and tables that the FREQ, MODES, NEXTRVAL=, PLOT, and CIBASIC options generate | ALL | |
Specify the confidence level for the confidence limits | ALPHA= | |
Request confidence limits for the mean, standard deviation, and variance based on normally distributed data | CIBASIC | |
Request confidence limits for quantiles using a distribution-free method | CIPCTLDF | |
Request confidence limits for quantiles based on normally distributed data | CIPCTLNORMAL | |
Exclude observations with nonpositive weights from the analysis | EXCLNPWGT | |
Specify the value of the mean or location parameter | MU0= | |
Specify the number of extreme observations displayed | NEXTROBS= | |
Specify the number of extreme values displayed | NEXTRVAL= | |
Request tests for normality | NORMAL | |
Specify the mathematical definition used to compute quantiles | PCTLDEF= | |
Compute robust estimates of scale | ROBUSTSCALE | |
Specify the units to round the analysis variable prior to computing statistics | ROUND= | |
Compute trimmed means | TRIMMED= | |
Specify the variance divisor | VARDEF= | |
Compute Winsorized means | WINSORIZED= | |
Control the displayed output | ||
Request a frequency table | FREQ | |
Request a table that shows number of observations greater than, equal to, and less than MU0= | LOCCOUNT | |
Request a table of all possible modes | MODES | |
Suppress side-by-side plots | NOBYPLOT | |
Suppress tables of descriptive statistics | NOPRINT | |
Create low-resolution stem-and-leaf, box, and normal probability plots | PLOTS | |
Specify the approximate number of rows the plots use | PLOTSIZE= |
Options |
Default: | .05 |
Range: | between 0 and 1 |
Main discussion: | Confidence Limits for Parameters of the Normal Distribution |
Featured in: | Performing a Sign Test Using Paired Data and Examining the Data Distribution and Saving Percentiles |
Alias: | ANNO= |
Interaction: | PROC UNIVARIATE does not use the ANNOTATE= data set unless you create a high-resolution graph with the HISTOGRAM, PROBPLOT, or QQPLOT statement. |
Tip: | Use the ANNOTATE= option in the HISTOGRAM, PROBPLOT, or QQPLOT statement if you want to add a feature to a specific graphics display. |
Default: | TWOSIDED |
Default: | The value of ALPHA= in the PROC statement |
Range: | between 0 and 1 |
Requirement: | You must use the default value of VARDEF=, which is DF. |
Main discussion: | Confidence Limits for Parameters of the Normal Distribution |
Featured in: | Performing a Sign Test Using Paired Data and Examining the Data Distribution and Saving Percentiles |
Default: | SYMMETRIC |
Default: | The value of ALPHA= in the PROC statement |
Range: | between 0 and 1 |
Alias: | CIQUANTDF |
Restriction: | This option is not available if you specify a WEIGHT statement. |
Main discussion: | Confidence Limits for Quantiles |
Featured in: | Performing a Sign Test Using Paired Data |
Default: | TWOSIDED |
Default: | The value of ALPHA= in the PROC statement |
Range: | between 0 and 1 |
Alias: | CIQUANTNORMAL |
Requirement: | You must use the default value of VARDEF=, which is DF. |
Restriction: | This option is not available if you specify a WEIGHT statement. |
Main discussion: | Confidence Limits for Quantiles |
Featured in: | Examining the Data Distribution and Saving Percentiles |
Main discussion: | Input Data Sets |
Requirement: | You must use a WEIGHT statement. |
See also: | WEIGHT Statement |
Interaction: | If you specify the WEIGHT statement, PROC UNIVARIATE includes the weighted count in the table and uses this value to compute the percentages. |
Featured in: | Rounding an Analysis Variable and Identifying Extreme Values |
Tip: | If you omit the libref, PROC UNIVARIATE looks for the catalog in the temporary library called WORK and creates the catalog if it does not exist. |
See also: | For information on storing graphics output in SAS catalogs, see SAS/GRAPH Software: Reference |
Restriction: | This option is not available if you specify a WEIGHT statement. |
See also: | MU0= |
Featured in: | Performing a Sign Test Using Paired Data |
Alias: | MODE |
Main discussion: | Calculating the Mode |
Featured in: | Performing a Sign Test Using Paired Data |
Alias: | LOCATION= |
Default: | 0 |
Main discussion: | Tests for Location |
Example: | The following statement tests if the
mean of the first variable equals 0 and the mean of the second variable equals
0.5.
proc univariate mu0=0 0.5; |
Featured in: | Examining the Data Distribution and Saving Percentiles |
Default: | 5 |
Range: | an integer between 0 and the half the maximum number of observations |
Tip: | Use NEXTROBS=0 to suppress the table of extreme observations. |
Featured in: | Rounding an Analysis Variable and Identifying Extreme Values and Creating Schematic Plots and an Output Data Set with BY Groups |
Default: | 0 |
Range: | an integer between 0 and half the maximum number of observations |
Featured in: | Rounding an Analysis Variable and Identifying Extreme Values |
Tip: | Use NOPRINT when you want to create an OUT= output data set only. |
Featured in: | Creating an Output Data Set with Multiple Analysis Variables and Fitting Density Curves |
Alias: | NORMALTEST |
Restriction: | This option is not available if you specify a WEIGHT statement. |
Main discussion: | Goodness-of-Fit Tests |
Featured in: | Examining the Data Distribution and Saving Percentiles |
Alias: | DEF= |
Default: | 5 |
Range: | 1, 2, 3, 4, 5 |
Restriction: | You cannot use PCTLDEF= when you compute weighted quantiles. |
Main discussion: | Percentile and Related Statistics |
Schematic Plots
appear after the univariate
analysis for the last BY group.
Alias: | PLOT |
Main discussion: | Generating Line Printer Plots |
Featured in: | Examining the Data Distribution and Saving Percentiles and Creating Schematic Plots and an Output Data Set with BY Groups |
Default: | the value of PAGESIZE= |
Range: | 8 to the value of PAGESIZE= |
Featured in: | Examining the Data Distribution and Saving Percentiles and Creating Schematic Plots and an Output Data Set with BY Groups |
Restriction: | This option is not available if you specify a WEIGHT statement. |
Main discussion: | Robust Measures of Scale |
Featured in: | Computing Robust Estimators |
Default: | 0 |
Tip: | ROUND= reduces the number of unique variable values, thereby reducing the memory requirements. |
Range: | 0 |
Main discussion: | Rounding |
Example: | To make 1 the rounding unit for the
first analysis variable and 0.5 the rounding unit for second analysis variable,
submit the statement
proc univariate round=1 0.5; |
Featured in: | Rounding an Analysis Variable and Identifying Extreme Values |
Default: | TWOSIDED |
Default: | The value of ALPHA= in the PROC statement |
Range: | between 0 and 1 |
Alias: | TRIM= |
Range: | between 0 and half the number of nonmissing observations. When a proportion is specified, value must be less than .5. |
Requirement: | To compute confidence limits for the mean and the Student's t test, you must use the default value of VARDEF=, which is DF. |
Restriction: | This option is not available if you specify a WEIGHT statement. |
Main discussion | Trimmed Means |
Featured in: | Computing Robust Estimators |
Value | Divisor | Formula for Divisor |
---|---|---|
DF | degrees of freedom | n - 1 |
N | number of observations | n |
WDF | sum of weights minus one | (iwi) - 1 |
WEIGHT|WGT | sum of weights | iwi |
Default: | DF |
Requirement: | To compute the standard error of the mean, confidence limits, and Student's t test, use the default value of VARDEF=. |
Tip: | When you use the WEIGHT statement and VARDEF=DF, the variance is an estimate of , where the variance of the ith observation is and is the weight for the ith observation. This yields an estimate of the variance of an observation with unit weight. |
Tip: | When you use the WEIGHT statement and VARDEF=WGT, the computed variance is asymptotically (for large n) an estimate of , where is the average weight. This yields an asymptotic estimate of the variance of an observation with average weight. |
See also: | Keywords and Formulas and WEIGHT Statement |
Default: | TWOSIDED |
Default: | The value of ALPHA= in the PROC statement |
Range: | between 0 and 1 |
Alias: | WINSOR= |
Range: | between 0 and half the number of nonmissing observations. When a proportion is specified, value must be less than .5. |
Requirement: | To compute confidence limits and the Student's t test, you must use the default value of VARDEF=, which is DF. |
Restriction: | This option is not available if you specify a WEIGHT statement. |
Main discussion | Winsorized Means |
Featured in: | Computing Robust Estimators |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.