Created
December 19, 2019 15:46
-
-
Save jcheong0428/fd7d079369b3adf907a0bfb36133771d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| contrasts(data$Gender) <- c(-.5,.5) | |
| m <- lm('Income~Age*Gender',data=data) | |
| summary(m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Jinhyun, thanks for your blog, I found very helpful.
Actually, I have a question regarding on centered the contrasts at 0, what if I have multiple categorical variables? how should I set them at 0?