Chapter 2 (2.5-2.7) Flashcards

1
Q

What does the “$” character allow you to do?

A

Create a new character.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or false: when you create a new object, the name should be written in lowercase letters.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does an average causal effect estimate?

A

The average change in Y caused by a change in X.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the best way of ensuring that the treatment group and the control group are comparable?

A

Running a randomized experiment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or false: if the outcome variable is binary, the difference-in-means estimator is measured in percentage points.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are percentage points?

A

A unit of measurement for the arithmetic difference between two percentages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What’s the formula for the difference-in-means estimator?

A

Difference-in-means estimator = average outcome for the treatment group - average outcome for the control group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What three arguments does the “ifelse()” function require?

A
  1. logical test (using “==”)
  2. a return value if the logical test is true
  3. a return value if the logical test is false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly