Chapter Contents |
Previous |
Next |
The STANDARD Procedure |
PROC STANDARD <option(s)>; |
To do this | Use this option | |
---|---|---|
Specify the input data set | DATA= | |
Specify the output data set | OUT= | |
Computational options | ||
Exclude observations with nonpositive weights | EXCLNPWGT | |
Specify the mean value | MEAN= | |
Replace missing values with a variable mean or MEAN= value | REPLACE | |
Specify the standard deviation value | STD= | |
Specify the divisor for variance calculations | VARDEF= | |
Control printed output | ||
Print statistics for each variable to standardize |
Without Options |
Options |
Main discussion: | Input Data Sets |
Restriction: | You cannot use PROC STANDARD with an engine that supports concurrent access if another user is updating the data set at the same time. |
Alias: | M= |
Default: | mean of the input values |
Featured in: | Standardizing to a Given Mean and Standard Deviation |
Default: | DATAn |
Featured in: | Standardizing to a Given Mean and Standard Deviation |
Featured in: | Standardizing BY Groups and Replacing Missing Values |
Interaction: | If you use MEAN=, PROC STANDARD replaces missing values with the given mean. |
Featured in: | Standardizing BY Groups and Replacing Missing Values |
Alias: | S= |
Default: | standard deviation of the input values |
Featured in: | Standardizing to a Given Mean and Standard Deviation |
Value | Divisor | Formula for Divisor |
---|---|---|
DF | degrees of freedom | n - 1 |
N | number of observations | n |
WDF | sum of weights minus one | (_{i}w_{i}) - 1 |
WEIGHT|WGT | sum of weights | _{i}w_{i} |
Default: | DF |
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: | WEIGHT |
Main discussion: | Keywords and Formulas |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.