Hello everybody,

I am trying to create a dummy variable that is equal to one of current rainfall in a given district (avgrf) is one standard deviation below or above the historical mean of rainfall in that district (lravgrf). I also want to create a dummy equal to one if the current rainfall falls within the range of one standard deviation.

Does anyone have any suggestions on how to do that?

Best, Jérôme