R code for generating stochastic precipitation from daily observations using the modified Wilks approach of Mhanna and Bauwens (2012)