Skip to content

Conversation

@millerdl-CEH
Copy link

This patch should add support for the ordered categorical models available in mgcv for a while now via the ocat family. Mathematical details are in https://www.maths.ed.ac.uk/~swood34/gsm.pdf, but are not that different from the other models supported by sure.

I knocked this together fairly quickly and I think it works (comparison between the equivalent polr model for your df1 seems about right, as do plots for some data I'm working on) but I may have missed some critical internal thing, not being fully immersed in the package details.

Hope this is useful and thanks for the package, it's very handy.

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

Successfully merging this pull request may close these issues.

2 participants