Hi everyone,
I'm trying to manipulate one of my variables such that it only keeps observations that are within a certain date range. I keep on getting an "invalid syntax" error when I enter the command that I think I should be using, but I'm not sure where I have gone wrong with the syntax. I have had a look at the Stata manual and at some online resources but still don't quite know where I'm going wrong, as the code looks fine to me. Here is the command I used:
Any advice would be appreciated.
I'm trying to manipulate one of my variables such that it only keeps observations that are within a certain date range. I keep on getting an "invalid syntax" error when I enter the command that I think I should be using, but I'm not sure where I have gone wrong with the syntax. I have had a look at the Stata manual and at some online resources but still don't quite know where I'm going wrong, as the code looks fine to me. Here is the command I used:
Code:
keep EBreceived if year>=2008 & month>=7
Comment