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

Implement multi-category outcome models #60

Closed
leeper opened this issue Mar 30, 2017 · 3 comments
Closed

Implement multi-category outcome models #60

leeper opened this issue Mar 30, 2017 · 3 comments

Comments

@leeper
Copy link
Owner

leeper commented Mar 30, 2017

prediction now supports multi-category outcome models (of various kinds) and offers the new category argument to specify which level of an outcome a la Stata:

margins xvar, predict(outcome(3))
prediction(model, category = 3)

So it should now be possible to cascade the category argument up to some new margins() methods and implement Stata-like interpretations.

leeper added a commit that referenced this issue Apr 3, 2017
leeper added a commit that referenced this issue Apr 11, 2017
@dnbarron
Copy link
Contributor

dnbarron commented Apr 11, 2017

Would it be possible to extend this to support clm as well as polr? Perhaps using something similar to the clm.to.polr function in the effects package? Happy to have a go at this myself if you're open to it.

This is a really useful package, thanks for providing it!

@leeper
Copy link
Owner Author

leeper commented Apr 12, 2017

@dnbarron Yes, definitely. Basically once a model class is supported in prediction (see TODO list), it is then possible to implement it in margins, so it's just a matter of time. I'm open to PRs to add functionality but I do not intend to use the effects package as a dependency here.

leeper added a commit that referenced this issue Jul 22, 2018
@leeper
Copy link
Owner Author

leeper commented Jul 22, 2018

Consolidating this issue to: #101

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

2 participants