Regression With Categorical Predictors Flashcards

1
Q

What is categorical scale?

A

Could be gender, city area, level of education, type of illness.

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

How can you do regression with categorical predictors?

A

By dummy coding.

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

What is dummy coding?

A

A way of representing categories using only the values 0 and 1

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

What do you do when the predictor has 2 categories in dummy coding?

A

Choose one as baseline and then compare the other predictor with the baseline.
Assign 1 to the baseline category and 0 to the category you are comparing.

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

What does the ANOVA table show?

A

Goodness of fit. If it’s non significant the model is not a better at predicting the change in the variable than a model based on the mean.

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

Can you make a scatterplot of categorical regression?

A

Yes, and it will look weird but that’s fine! Also you can still add line of best fit!

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

What is the null hypothesis for regression?

A

That there are no difference between the 2 predictors.

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

What t-test do you perform with categorical regression?

A

Independent sample t-test

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

In the independent t-test what cells do you need to read?

A

t, sig (2-tailed) and mean difference.

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

What is the mean difference in independent t test the same as?

A

B ( the slope) in the coefficient regression table of regression analysis

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

What do you dummy code categorical predictors with more than 2 predictors?

A

Add the number of variables and subtract 1.
Choose one as the baseline which you call 1 then you call the other variables 0 (yellow 1, green 0 and red 0).
You then compare red vs yellow and green vs yellow.
Then create another dummy variable naming another variable 1 and the two others 0 (green 1, yellow 0 and red 0) which means you can then compare red vs green.
The baseline is always the same variable (red).

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