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
Callaway and Sant'Anna Diff in DiffHello Stata community, I'm trying to replicated the recent development in DiD literature developed …
Multiple Regression with large numbers of variablesI'm attempting to perform multiple regression on large amounts of molecular data to model the associ…
Missing standard errors because of stratum with single sampling unit.How do I fix the problem of missing standard errors because of stratum with single sampling unit whe…
Forum like stataliest for new R usersHello stata community, I have been a long time stata user but need to get myself familiar with R fo…
F-Test valuesHello, I'm performing some quite simple linear regression analyses (with the command reg followed by…
Subscribe to:
Post Comments (Atom)
0 Response to Creating seasons of the year by using gen command
Post a Comment