Confusion of rate and shape
- Dominant language
- R
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I may be wrong here, but according to the [Wikipedia page](https://en.wikipedia.org/wiki/Inverse-gamma_distribution), if X is gamma-distributed with shape _a_ and rate _b_, then 1/X is IG-distributed with shape _a_ and rate 1/_b_ (and thus scale _b_). The converse holds true as well. But it seems to me that in your function dinvgamma, for example, the rate of the IG distribution is used directly as the rate in the function stats::dgamma, without first taking the reciprocal.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the dinvgamma function and compare its rate handling with the inverse-gamma relationship described in the linked Wikipedia page and the parameterization used by stats::dgamma. Done means the rate/scale conversion is consistent in dinvgamma and the related distribution behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100