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

margins for polr estimators #172

Open
2 of 3 tasks
maximeto opened this issue Jun 8, 2021 · 0 comments
Open
2 of 3 tasks

margins for polr estimators #172

maximeto opened this issue Jun 8, 2021 · 0 comments

Comments

@maximeto
Copy link

maximeto commented Jun 8, 2021

Please specify whether your issue is about:

  • a possible bug
  • a question about package functionality
  • a suggested code or documentation change, improvement to the code, or feature request

I can't understand the type of prediction the margins function uses for the polr estimator.
Typical polr prediction would be a vector of predicted probabilities. The margin function only returns one statistic.
Which one is that?

Thanks!

## load package
library("margins")
library(polr)

house.plr <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing)
predict(house.plr, type = 'p')
margins(house.plr, type = 'p')
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

1 participant