SAS/Descriptive Statistics

List and describe your data
Describe your data :

The proc contents returns the list and the type of all variables in the datasets.

List your data in the output :

The proc print prints the data in the output window. The firstobs option gives the first line to be printed and the obs option the number of lines to print.

Discrete Variables

 * weight specify weights

Continuous Variables
proc means presents descriptive statistics for each variable listed in the var statement or for each numeric variable in the data set if there is no var statement. Here are some of the keywords that can be used to tell SAS which statistics you wish to see.
 * n : count of non missing variables
 * sum : summation of the variable
 * range : largest value minus smallest value
 * mean : average
 * var : variance
 * stddev : standard deviation

The class statement makes statistics for each group of the categorical variable in the class statement. The weights statement weights the observations.

The proc univariate gives more options. It also returns the quantiles. There is also an histogram statement which can be useful.

Kernel and Histograms
If you want to do a kernel or an histogram, you can use proc univariate with the histogram statement or the proc capability.

Proc capability :

T Test
The following code test the assumption that the expected value of variable x in the dataset taille is 1.75.