-
-
Notifications
You must be signed in to change notification settings - Fork 269
Analysing ordinal data in PyMC #277
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
Comments
Is there anything blocking this one? I'm interested in this class of models. I couldn't see if there was still an issue with setting priors on the cut points? It seems it is possible to pass in a vector now.... Happy to pick this one if you like @drbenvincent but also conscious that you seem to have done allot of work on it already....? |
I initially wanted to work on it, but my plate is full at the moment. So no objections from me. No major blocker as far as I can tell. |
Cool. I'll pick it up after the longitudinal one is done. |
Opened a ticket: pymc-devs/pymc#6610 In the mean time i'll experiment a bit more with your constrained uniform function. |
…rdered univariate transform
…rdered univariate transform
…ng the implications of the model
… model based inference
* [Ordinal Regression #277] example ordinal regression using ordered univariate transform * [Ordinal Regression #277] example ordinal regression using ordered univariate transform * [Ordinal Regression #277] added some text * [Ordinal Regression #277] small update to text * [Ordinal Regression #277] added movie data analysis * [Ordinal Regression #277] added some write up * [Ordinal Regression #277] tidied final plot * [Ordinal Regression #277] changed movie comparison to ppc * [Ordinal Regression #277] added forward sampling interrogating the implications of the model * [Ordinal Regression #277] added more write up about design v model based inference * [Ordinal Regression #277] added bibtex ref * [Ordinal Regression #277] fixed bib merge conflict * [Ordinal Regression #277] trying to fix bib file for pre-commit checks * [Ordinal Regression #277] Small text changes and updated bib * [Ordinal Regression #277] added note about non-collapsability * [Ordinal Regression #277] updated with Ben's comments
Notebook proposal
Title: Analysing ordinal data in PyMC
Why should this notebook be added to pymc-examples?
Ordinal outcome variables are common in many data analysis situations. Example measures include:
Often people can be lazy in their analysis of ordinal data, and fall back to treating it as continuous.
The goal of this example is to demonstrate current best practice for ordinal regression in PyMC. In particular, it will make use of the new
pm.OrderedProbit
andpm.OrderedLogit
distributions.Once #5418 is merged, thenwe can go ahead with an example notebook.The plan is to put it in the GLM section. Current rough outline would be something like:
ConstrainedUniform
distribution (see propose newConstrainedUniform
distribution pymc-extras#32). We can always circle back and update this if a more polished solution presents itself.response ~ group
are useful for testing for differences in response distributions between groupsresponse ~ continuous_predictor
response ~ continuous_predictor + group
if the notebook is not getting bloated, and if it seems necessary.Related notebooks
As far as I understand there are no existing notebooks which provide examples for the analysis of ordinal data. The closest I can find is an old PyMC port of Chapter 23 of Kruschke, but that's totally independent of
pymc-examples
.References
The text was updated successfully, but these errors were encountered: