Skip to content

Ordered logistic regression #39

Closed
Closed
@datalorax

Description

@datalorax

I started a branch for dealing with ordered logistic regression via MASS::polr. I'm heading out of town through the end of the work week and won't have time to work on it more, but it might be worth taking a look. It works okay overall but the big issue currently is that the numerator and denominator are wrapped in \text and so I can't insert code like \geq easily. I don't think this should be a terrifically difficult fix, but it's something we should address.

Here's how it looks currently

library(magrittr)
library(rio)
library(equatiomatic)

d <- import("https://stats.idre.ucla.edu/stat/data/ologit.dta",
                 setclass = "tibble") %>%
	factorize()
m <- MASS::polr(apply ~ pared + public + gpa, data = d)
extract_eq(m)

Screen Shot 2019-06-19 at 12 06 53 PM

On a side note, I was really happy with how little code actually had to be written to make this extension. I think we've set ourselves up well for future development.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions