Selecting Statistics

The default statistics that the MEANS procedure produces are not always the ones that you need. You might prefer to limit output to the mean of the values. Or you might need to compute a different statistic, such as the median or range of the values.
To specify statistics, include statistic keywords as options in the PROC MEANS statement. When you specify a statistic in the PROC MEANS statement, default statistics are not produced. For example, to determine the median and range of Perm.Survey numeric values, add the MEDIAN and RANGE keywords as options.
proc means data=perm.survey median range; 
run;
Figure 9.2 MEANS Procedure Output Displaying Median and Range
MEANS Procedure Output Displays Median and Range
Use the following keywords with PROC MEANS to compute statistics:
Table 9.1 Descriptive Statistics
Keyword
Description
CLM
Two-sided confidence limit for the mean
CSS
Corrected sum of squares
CV
Coefficient of variation
KURTOSIS
Kurtosis
LCLM
One-sided confidence limit below the mean
MAX
Maximum value
MEAN
Average
MIN
Minimum value
MODE
Value that occurs most frequently
N
Number of observations with nonmissing values
NMISS
Number of observations with missing values
RANGE
Range
SKEWNESS
Skewness
STDDEV / STD
Standard deviation
STDERR
Standard error of the mean
SUM
Sum
SUMWGT
Sum of the Weight variable values
UCLM
One-sided confidence limit above the mean
USS
Uncorrected sum of squares
VAR
Variance
Table 9.2 Quantile Statistics
Keyword
Description
MEDIAN / P50
Median or 50th percentile
P1
1st percentile
P5
5th percentile
P10
10th percentile
Q1 / P25
Lower quartile or 25th percentile
Q3 / P75
Upper quartile or 75th percentile
P90
90th percentile
P95
95th percentile
P99
99th percentile
QRANGE
Difference between upper and lower interquartile range: Q3-Q1
Table 9.3 Hypothesis Testing
Keyword
Description
PROBT
Probability of a greater absolute value for the t value
T
Student's t statistic for testing the hypothesis that the population mean is 0
Last updated: January 10, 2018
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.239.166