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

Question: Ordinal Regression #297

Open
brandongreenwell-8451 opened this issue Sep 23, 2022 · 1 comment
Open

Question: Ordinal Regression #297

brandongreenwell-8451 opened this issue Sep 23, 2022 · 1 comment

Comments

@brandongreenwell-8451
Copy link

Wonderful package!

Can this package/framework also be used to model ordinal outcomes (i.e., without treating Y as nominal or continuous) to model cumulative probabilities, like Pr(Y <= j | X). Similar to a proportional odds regression model?

@alejandroschuler
Copy link
Collaborator

absolutely, you just need to specify a conditional likelihood that makes sense. There are already distributions in the package that work for survival outcomes so one of those might work for your problem. You can also use a categorical distribution (which is the most general) for ordinal data: the "survival" probability is just the sum over some subset of the categories. But I could see why you'd want to constrain it somehow if there are a ton of categories (but maybe not enough to sensibly treat the variable as continuous).

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

2 participants