UMASS Department of:
Biostatistics and Epidemiology

Basics
Combos
Desc Stats
Advanced
Index
SASHome
Print
Freq
Chart
Means
Univariate
Plot
more....
Descriptive Statistics for Variables and Groups
1. Obtaining Basic Desc Statistics


Introduction

We illustrate simple ways of obtaining descriptive statistics on variables using PROC MEANS. The illustrations use the SAS data set icua.sd2 created by a SAS program that consists the full data from a study of Intensive Care. The complete program for these examples is mn2.sas .

Task

Result

SAS Keywords/Code

Detail

1a. Simple summary statistics

Table 1a1.
Table 1a2.
Table 1a3.

PROC MEANS ;

1b. Selecting Variables and Stats

Table 1b1.
Table 1b2.
Table 1b3.

PROC MEANS N MEAN RANGE VAR;

VAR ;

1c. Controlling output appearance

Table 1c1.
Table 1c2.

PROC MEANS FW=
MAXDEC= ;

1d. Obtaining Population Variance and 1 Sample t-tests.

Table 1d1.
Table 1d2.

PROC MEANS VARDF=N T PRT;


Last Update: 10/13/98
Comments: Ed Stanek
Email:
stanek@schoolph.umass.edu
\ed\web\be691\webready\sdmn1.html