Hi, all.

I imported a dataset from excel to stata with data from seven years. I am trying to create a variable called wet season by year but I'm not having any luck. I am using the following command

gen wet-season-2002 = if Date >= mdy(7,31,year(2002)) | date < mdy(10,31,year(2002)) Attached is the excel file I am trying to run on stata.

Thanks in advance.