I'm trying to estimate the parameters of an inverse Gamma distribution given its 0.025 and 0.975 quantiles.
Currently, I've found rriskDistributions::get.gamma.par which gives me the estimation of parameters given quantiles of a Gamma distribution. However, I cannot figure out the relationship between the quantiles of Gammas and inverse Gammas.
How should I continue, or is there a package that can do this for me?
You can write your own objective function that computes the squared deviation between the computed quantiles for a particular set of inverse-gamma parameters and the target quantiles:
Then use
optim()to minimize: