SDA Codebook Tutorial

What Is a Codebook?

A codebook documents basic information about a data set and its variables. Viewing the codebook for a data set will help you identify variables of interest and determine which variables to analyze.

Every SAMHDA study has a downloadable PDF codebook that describes the data, provides variable frequencies, and discusses the study methodology.

Online SDA codebooks provide quick access to a brief description of the data set and allow you to quickly browse through the variables available for online analysis. We will now examine the various parts of the SDA codebook for the 2005 Treatment Episode Data Set (TEDS).


The SDA Codebook

View the SDA codebook for the 2005 TEDS study.

Login. If you have not already logged in, selecting any of the codebook links will take you to a MyData login screen. You can log in as a Guest/Anonymously or as a Returning User.

Terms of Use. Use of many SDA features will require you to read and agree to a Terms of Use statement once per login. Once you select the I Agree button, you will be directed to the selected SDA feature.

The main page of the SDA codebook displays the title page of the study. It also includes useful links in the vertical panel on the left side of the main page. These links are organized under two headings: Codebook and Variable List.


Codebook

The codebook information for the 2005 TEDS study includes the following links in the vertical panel to the left of the main codebook page:

The number and type of codebook links may vary somewhat from one data set to the next.

When you select links for the 2005 TEDS study, the target of each link opens in the main codebook window. Meanwhile, the vertical panel on the left remains accessible so that you can easily follow another link.

The codebook information should always be reviewed before performing any analysis to determine whether there is important information about such issues as weighting or sample design.


Variable List

The links under the Variable List heading of the vertical panel on the left side of the main codebook window take you to lists of the data set variables.

Group Headings. All SAMHDA data sets have an option called Group Headings that organizes the variables into logical groups that can be browsed.

When you select the Group Headings link for the 2005 TEDS study, a list of the Group Headings will appear in the main codebook window. For this data set, all of the variables have been organized into 11 variable groups. Some data sets require the use of both headings and subheadings in order to better organize a large number of variables.

When you select one of the heading links in the main codebook window, the Standard Variable List will open. Additionally, you will see the list of variables that fall under the heading you selected.

Standard Variable List. The Standard Variable List displays the variables in order of appearance in the codebook. When you select the link for the Standard Variable List, it will list all of the variables in the data set organized by the Group Headings.

When you select one of the variable links now appearing in the main codebook window, the Variable Description will appear.

Alphabetical Order. All SAMHDA data sets have a variable index called Alphabetical Order. This index is useful if you know the name of a variable and you want to find that variable quickly.

This index is also useful if the names of the variables are words related to the content of the variables (like AGE or RACE).


Variable Description

Now we will look at a Variable Description of the variable AGE.

To find the Variable Description for AGE, select the Alphabetical Order list and then select AGE.

Once you get to the Variable Description, you will generally find the following information:


Analysis of the Variables

Once you have identified the variables of interest for a data set, you can run various analyses on the data.

The next section focuses on running frequencies and crosstabulations.

Continue to the Frequency / Crosstabulation Tutorial