Test of differences
In this tutorial, you will learn to describe a dataset using CONTENTS procedure, to sort (double sort and multiple sort) a dataset using the SORT procedure, and print certain results to the log file (screen) using the PRINT procedure.
CONTENTS Procedure
This procedure is used to find the contents (variable names, label, and description) of a SAS data-set.
Click here to download the data. Always place files in the C:\data
folder. Also, set C:\data
directory as the WORK directory.
To find its contents, run the code below.
SAS code:
proc contents data=work.gdata ;
run ;
Click here to view the html output of the contents. Set C:\data
directory as the WORK directory.
To output the contents to a pdf, run the code below.
SAS code:
ods pdf file="C:\data\contents.pdf" ;
proc contents data=work.gdata ;
run;
quit;
ods pdf close;
Click here to view the pdf output of the contents.
Practice Exercises
Find the contents of the following data-sets
Road map
- Data Input
- Data Manipulation
- Some useful PROC steps
- Merging and subsetting a dataset
- Compute descriptive statistics
- Compute test of differences
- Ordinary Least Squares
- Probit/Logit Regression
- DO loops
- WHILE loops
- NESTED loops