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.
Related Posts with Creating seasons of the year by using gen command
collapse variable in more than 1 way in one collapse commandIs it possible to collapse the same variable in more than 1 way in 1 collapse command (e.g., to get …
Help Regarding "esttab"Greetings Everyone! Hopefully, you will be fine, I want to add Groups(Firms) in the Regression Tabl…
How to write correctly the panel data regression in the command Stata?Good morning to the community. I've read a lot of books and I've seen a lot of videos on panel data …
Place date year on a second line on x-axisMy x-axis data is currently in date (week) format, so my current code as part of a twoway graph is a…
collapse variable in more than 1 way in one collapse commandIs it possible to collapse the same variable in more than 1 way in 1 collapse command (e.g., to get …
Subscribe to:
Post Comments (Atom)
0 Response to Creating seasons of the year by using gen command
Post a Comment