Skip to content

Contrast treatment #110

@marcopark90

Description

@marcopark90

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions