wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

02_Stats

Total questions: 5

Worksheet time: 4mins

Name
Class
Date
1.

To investigate the relationship between two continuous variables (x1 and x2) in Stata, you would use

a)

tab x1 x2

b)

sum x1 x2

c)

scatter x1 x2

d)

hist x1 x2

2.

To investigate the relationship between two categorical variables (x1 and x2) in Stata, you would use

a)

tab x1 x2

b)

sum x1 x2

c)

scatter x1 x2

d)

hist x1 x2

3.

How can you display summary statistics of all the variables in the dataset in Stata?

a)

sum

b)

summar

c)

summarize

d)

All of the above

4.

There is a variable y in you dataset and you want to create a new variable x. Choose the line of code that would result in an error:

a)

gen x = 2

b)

gen x = 2 if y < 2

c)

gen x = 2 if y = 2

d)

gen x = 2 if y == 2

5.

How can you combine if conditions in Stata?

a)

With & as "and" and | as "or"

b)

With & as "or" and | as "and"

c)

It is impossible to combine conditions, there can be only one per line.

d)

With () as "or" and [] as "and".