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

Support non-base modelling functions #3

Closed
7 of 15 tasks
leeper opened this issue Dec 9, 2014 · 5 comments
Closed
7 of 15 tasks

Support non-base modelling functions #3

leeper opened this issue Dec 9, 2014 · 5 comments

Comments

@leeper
Copy link
Owner

leeper commented Dec 9, 2014

  • loess
    • predict() method uses se rather than se.fit
  • plm/pglm
    • no predict() method
  • MASS::polr()
    • has predict() method with type = c("class", "probs")
  • MASS::glm.nb()
    • should work out of the box
  • lme4 (lmer(), glmer(), ...)
    • lme4:::predict.merMod() has no se.fit argument
  • nlme
    • nlme:::predict.lme() has no se.fit or type arguments
    • nlme:::predict.gls() has no se.fit argument.
  • nls
    • requires setting model = TRUE in original call; and then getting term(object[["model"]])
  • lfe::felm()
  • survey
    • (implements alternative modelling functions for non-SRS survey datasets)
  • survival
    • coxph class has different type values for predict(): c("lp", "risk", "expected")
    • survival::survreg()
  • censReg
    • has a margEff() generic but no predict() method
  • nnet::multinom() or any nnet model generally
  • AER::ivreg()
  • quantreg::rq()
  • Document which model types have prediction() and marginal_effects()/margins() methods
@leeper leeper changed the title Support censReg Support non-base modelling functions Jul 28, 2016
@markdanese
Copy link

This looks like a great package. Thanks for putting it together. Thomas Lumley's survey package wraps glm for regression modeling when handling the weights needed for analyzing complex surveys. I don't know how hard it would be to get that package to work with margins. (Also, the survival package might be worth considering.)

@leeper
Copy link
Owner Author

leeper commented Aug 7, 2016

@markdanese Thanks and great suggestions. I've added them to the list.

leeper added a commit that referenced this issue Aug 22, 2016
@hughjonesd
Copy link

I would throw in a vote for nnet::multinom, the multinomial logit. This requires specifying which category of the DV you want to see marginal effects for.

@leeper
Copy link
Owner Author

leeper commented Aug 23, 2016

@hughjonesd Thanks. I've added it to the list.

@leeper
Copy link
Owner Author

leeper commented Oct 30, 2016

I am moving this issue here: leeper/prediction#1

@leeper leeper closed this as completed Oct 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants