Sorry, I meant the codes below will give me the prenatal average for the period gen yearmonth= ym(year, month) format yearmonth %tm
rangestat (mean) rain, interval(yearmonth -10000 -9) by(reg) With regard to the second question, yes I need the mean rainfall or (long term mean which I have already derived (under the name meanrain)), for the region of birth excluding the 9 prenatal months. Hence, it is the mean average for months before and after the prenatal period. Thanks so much for your help. Regards!
Comment