Hello I wanted to extract the year and month as separate variables from these dates. The year should be either 2007 or 2008. I suppose the last 2 digits denote the year. How do I separate it to say year==2007 or 2008.
------------------ copy up to and including the previous line ------------------
Listed 100 out of 125578 observations
Use the count() option to list more
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long B2_q2i 140608 130608 120608 130608 130608 110608 130608 110608 140608 140608 190608 170608 90708 140608 180608 150608 200608 160608 180608 170608 40608 50608 80608 80608 50608 80608 50608 60608 40608 60608 130608 140608 120608 160608 150608 160608 160608 150608 140608 130608 70508 40508 60508 60508 80508 50508 80508 90508 70508 50508 270408 220408 240408 240408 250408 230408 230408 240408 240408 230408 310508 310508 290508 300508 310508 260508 310508 260508 310508 310508 140408 110408 110408 110408 120408 120408 130408 120408 140408 130408 200408 230408 230408 140408 220408 220408 230408 250408 200408 240408 160608 70608 140608 140608 150608 150608 160608 70608 170608 170608 end
Listed 100 out of 125578 observations
Use the count() option to list more
Comment