![]() Chapter Contents |
![]() Previous |
![]() Next |
| The UNIVARIATE Procedure |
| PROC UNIVARIATE <option(s)>; |
| Options |
| Default: | .05 |
| Range: | between 0 and 1 |
| Main discussion: | Confidence Limits for Parameters |
| Featured in: | Performing a Sign Test Using Paired Data and Examining the Data Distribution and Saving Percentiles |
| 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 |
| 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 |
| 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 |
) in the null hypothesis for tests of location. If you specify
one value, PROC UNIVARIATE tests the same null hypothesis for all analysis
variables. If you specify multiple values, a VAR statement is required, and
PROC UNIVARIATE tests a different null hypothesis for each analysis variable
in the corresponding order.
| 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 |
| Alias: | NORMALTEST |
| Restriction: | This option is not available if you specify a WEIGHT statement. |
| Main discussion: | Tests for Normality |
| 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: | 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 |
, and
.
| 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 |
, where
is the corrected sums of squares and equals
. When you weight the analysis variables,
equals
, where
is the weighted mean.
| 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.