Finds the shape and rate of the Gamma distribution whose `p1` and `p2` quantiles are `q1` and `q2`, by least squares on the CDF. Useful to turn a plausible range of a rate (e.g. a switch rate) into Gamma prior hyperparameters.
Finds the shape and rate of the Gamma distribution whose `p1` and `p2` quantiles are `q1` and `q2`, by least squares on the CDF. Useful to turn a plausible range of a rate (e.g. a switch rate) into Gamma prior hyperparameters.