Skip to content

Cell mean coding? #351

Description

@behinger

Is it possible to get a cell-mean coding somehow?

e.g. y~0+A+B => both 2 levels

1 0 0 0
1 0 0 0
0 1 0 0
0 1 0 0
0 0 1 0
0 0 1 0
0 0 0 1
0 0 0 1

The hack I use right now is to combine all categorical variables to one new variable and thus have a 4-level predictor that I can DummyCode. Maybe I missed something obvious (A=>FullDummy, B=>FullDummy doesnt work, gives me:

1 0 1 0
0 1 1 0
1 0 0 1
0 1 0 1

Cheers!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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