Presentation is loading. Please wait.

Presentation is loading. Please wait.

Setting up your database And codebook. What is a codebook? It is a description of all your variables How they were created How they are scored Includes.

Similar presentations


Presentation on theme: "Setting up your database And codebook. What is a codebook? It is a description of all your variables How they were created How they are scored Includes."— Presentation transcript:

1 Setting up your database And codebook

2 What is a codebook? It is a description of all your variables How they were created How they are scored Includes actual variable names It is very useful

3 Codebook QuestionVariableVariable Name in SPSS ScoringRange How old are you? Age Years and months, Based on responses 18.4 –19.8 What sex are you? Sex 0=male; 1=female 0-1 How often do you use marijuana each month How oft MJ mos mjfreqmo0=never 1=sometimes 2=often 3=daily 0-3 Total of other questions Total marijuana use mjtotMjfreqmo + mjfreqda+mjfre qyr 0-12

4 Naming Variables Must be unique Must start with a letter Can’t include symbols Can’t include certain command words Can’t be more than 64 characters – Should NOT be more than 8 characters

5 Variables? We will only be using variables in a numeric format We will not use “string” variables Thus all variables, including gender, must be assigned numbers Even if those numbers aren’t meaningful

6 What about missing data Label it numerically I recommend using 999


Download ppt "Setting up your database And codebook. What is a codebook? It is a description of all your variables How they were created How they are scored Includes."

Similar presentations


Ads by Google