wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quant Session 5 (part 2)

Total questions: 5

Worksheet time: 4mins

Name
Class
Date
1.

Which is NOT a way to create a new variable?

a)

Start from scratch gen q40a = .

b)

Make an exact copy gen q40a = q40

c)

Do the math q40a = q39a + q39b + q39c

d)

Change the name rename q40 q40a

2.

What should you do when doing a recode involving three or more variables? 

a)
  1. List only the values of the newly created variable. 

b)
  1. List the values of the newly created variable and all component variables, including intermediate variables if used. 

c)
  1. List only the values of the component variables. 

d)
  1. List the values of the newly created variable but exclude intermediate variables. 

3.

Which of the following are key steps in checking the accuracy of complex recodes using the LIST command? 

a)
  1. Conduct a basic LIST scan 

b)
  1. Select a subset of cases to check 

c)
  1. Select a random subsample 

d)
  1. Check specific ranges of recodes 

e)
  1. All of the above 

 

4.

4. What are the 4 different uses of GENERATE? (choose all that apply)

 

a)
  1. Setting a new variable equal to an existing variable (making a copy) 

b)
  1. Initialize to Missing (.) - Starting from Scratch 

c)
  1. Setting a new variable equal to an arithmetic expression 

d)
  1. Merging two datasets together 

e)
  1. Intermediate variables: using several GENERATE strategies 

5.
  1. Say you wanted to make a variable that represents how many adults the R lives with, based on variables Q14a, Q14b, and Q14c.  Which GENERATE strategy would you use? 

a)
  1. Initialize to 999 then pull in with IF statements. 

b)
  1. Make a copy of Q14a and recode from there. 

c)
  1. Create copies and dummy variables to represent 1=yes, 0=no if they live with each kind of adult (Q14a, Q14b, Q14c), then add up the Yeses. 

d)
  1. Recode the original Q14 Variable