Replies: 4 comments 6 replies
-
|
This should be very easy for users to do. See here: https://marginaleffects.com/bonus/extensions.html#modify-or-extend-supported-models That said, adding new types is out of scope for marginaleffects, so this would be a user-side project. |
Beta Was this translation helpful? Give feedback.
-
|
I tried the suggested approach. I got part of the package to work, but I also run into some trouble. I take any feedbacks on the culprits for the errors. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately, we cannot support custom classes in the This is now documented more clearly (in the dev version) and we raise an error immediately when called. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it make sense to add support for type "response" for Cox models, that would predict the average survival time ? I've seen at least one person doing something similar for discrete models here. In theory, the expected survival time is computable from the hazard by integration, which should be numerically tractable, shouldn't it ? The benefit would be to be able to compare Cox models with accelerated time models, which at the moment one can not. (Disclaimer : I am by no way an expert in survival models, just a generalist statistician.)
If it were to make sense, what would it take to implement it ? From the code it looks like
typeis passed down until it reachesstat::predictso this is not amarginaleffectsissue ?Beta Was this translation helpful? Give feedback.
All reactions