-
Notifications
You must be signed in to change notification settings - Fork 27
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
Gengamma #286
Conversation
Thanks!! Is it obvious what the distribution function would be? I.e. the equivalent of pgamma here so the quantile residuals work? Also, I assume Q / lambda is the most intuitive parameter to report in
|
Just noting for myself that there are some helpful examples here, which could be reparameterized for the Prentice version. Plus a bunch of implementations on CRAN to check against. First example https://search.r-project.org/CRAN/refmans/flexsurv/html/GenGamma.html |
Actually, I just realized it's the Prentice parameterization used in the flexsurv package already, so we can either import that pgengamma or use an open-source code snippet. https://search.r-project.org/CRAN/refmans/flexsurv/html/GenGamma.html |
Adding generalized-gamma distribution.
See test below, where the gengamma distribution results in gengamma_Q close to 0, i.e., collapsing to the lognormal distribution, and AIC confirms that it fits with slightly less than 2 AIC higher than the lognormal.