I have a panel data. I want to calculate the summary statistics for the data before the year 2007 and after year 2007. I tried to use the following command but it did not work.
summarize variables, if year =<2007
I have a panel data. I want to calculate the summary statistics for the data before the year 2007 and after year 2007. I tried to use the following command but it did not work.
summarize variables, if year =<2007
Don't write variables and your inequality is on the wrong side. Your code should look like this if you want to get the descriptive statistics of all the variables for the years before 2007.
sum if year <=2007