hello, i have a question. i do not have daily data but an average of precipitation data for each month from 1981 to 2019 and following the steps gives me error and does not give the results of spi. I would like to know how I could get the SPI from monthly and non-daily average data.
Hi, I tried the application but got the following error " Error in spei(data, scale, kernel, distribution, fit, na.rm, ref.start, : argument "scale" is missing, with no default" What can I do? Can you help me?
It is easy. Instead of "as.daily" simply use "as.monthly" after the spi-function. Note that the data needs to be arranged according to year, month and monthly precipitation (i.e. data only in 3 columns).
"Error in precintcon.spi.analysis(object, period, distribution) : input data should be of type precintcon.daily or precintcon.monthly" This error again and again