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

Better contrast specification #29

Open
njsmith opened this issue Oct 26, 2013 · 0 comments
Open

Better contrast specification #29

njsmith opened this issue Oct 26, 2013 · 0 comments

Comments

@njsmith
Copy link
Member

njsmith commented Oct 26, 2013

Two possible improvements in how we work with contrasts:

  • (minor) Maybe we should have a way to specify a contrast symbolically, like linear_constraint but just the linear part, not the = constant part.
  • (major) There should be some way to specify contrasts and constraints in terms of predictions (which are invariant wrt coding), rather than predictors (betas). Like it should be possible to say "the difference between an item with a=1 and an item with a=2", and the model will spit out a matrix encoding this -- or, crucially, if the model has an interaction between a and b, then it will say "that's not estimable, you can't leave b unspecified". Possibly we also want to be able to say "tell me the derivative of the prediction wrt x1", since that's also one of the things that betas encode.

Syntax for this will be tricky. Possibly just an array of weights + a list of data dicts?

I need to brush up on the estimable contrast literature...

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

No branches or pull requests

1 participant