Week 5 - Non-linearities. Binary variables. Interactions. Flashcards
1
Q
When can you use logarithms?
A
2
Q
What is a binary variable?
A
A binary variable only has two values 1 and 0.
2 They are used to distinguish one category over the rest. Normally, the
value 1 is reserved for the category one wants to focus on
Think switch
3
Q
Binary variables: inference
A
4
Q
The binary variable trap
A
If your model is going to have di§erent intercepts, one for
each of the n groups in a categorical variable, then you
need to include n-1 binary variables along with the
intercept.
5
Q
2 How do you deal with categorical variables?
A
6
Q
Define Interactions
A