-
Notifications
You must be signed in to change notification settings - Fork 10
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
Extending fitdistrplus #33
Comments
Thanks for your comment, |
Sure. This is our current wrapper function: https://github.com/epinowcast/primarycensoreddist/blob/main/R/fitdistdoublecens.R Note the need to use This is an example use case: https://github.com/epinowcast/primarycensoreddist/blob/main/R/fitdistdoublecens.R The first example shows how to naively use The core of the problem is the design choice to rely on detecting distribution functions in the global environment as this makes extending the package difficult because you have to assign your custom distributions to the global environment. I see a few options:
Happy to implement any of these as a PR. |
Firstly, thanks for a great package.
We are currently extending
fitdistrplus
to support primary censored events (on top of your existing support for secondary censoring) and have got a bit stuck with the custom distribution support. The issue we are facing is assigning a custom distribution to the global environment to make it work. This works which is great but I think it won't be CRAN compliant - see https://github.com/epinowcast/primarycensoreddist/issues/62v.Is there anything we have missed with
fitdistrplus
that might help us or any other suggestion to work around this?If the answer to both of those is no then potentially this could be resolved by allowing custom family functions to be passed as arguments. If you are interested in that I would be happy to submit a PR.
The text was updated successfully, but these errors were encountered: