Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contrast treatment #110

Open
marcopark90 opened this issue Aug 25, 2019 · 0 comments
Open

Contrast treatment #110

marcopark90 opened this issue Aug 25, 2019 · 0 comments

Comments

@marcopark90
Copy link
Collaborator

marcopark90 commented Aug 25, 2019

This issue tracks progress and decisions related to contrast treatment for categorical variables.
As per discussion on the slack workspace:

Basically it seems that there are two different approaches here:

  1. Set the contrast so the group mean is assigned to the intercept
  2. Set the contrast so the group reference level is assigned to the intercept.
    These two approaches will lead to the following results:
  3. In this case any new "unseen" levels will have the group mean of the variable.
  4. In this case, assuming the reference level is the one with the highest level of exposure, any 'unseen' variable will have the group mode of the variable.
    The question is then if it is better to pick the mean or the mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant