I'm looking to calculate the Standardized Precipitation Index (SPI) using distributions other than gamma in R. Any guidance or code examples would be appreciated . Thank you!
You can do it in MS Excel spreadsheet. Some probability density functions (in built) other than Gamma can be directly used in MS Excel and so you can also calculate SPI using those distribution functions. My suggestion is that you can take one or two good journal papers on SPI and its calculation process and use excel to do it.
In order to do it on the R platform, you can find lots of related videos in youtube. Google it. Good luck.
Hi Mohamed, You can use the SPEI library in R to compute the SPI indices. You can experiment with distributions such as gamma, log-logistics, and Pearson III.