I am given a list of date variables in dd/mm/yy and I would like to sort the variables out in the form of grouping them together by the specific year. For example, I want all date variables of 2010 to be in 2010 year variable and all date variables of 2011 to be in 2011 year variable.
How do I go about doing this?
Related Posts with How to convert date variable to year group?
STATA seems to add spaces into path where there are none although using double quotesDear statalist, I am using Stata/SE 15.1 for Mac. I am using a global to specify my path at the beg…
Can I use a zero inflated negative binomial regression?Hello everyone, this is my first post, so please be kind and understanding if I don't meet the foru…
event-study (event-study2)Hi all, I am using Stata 16. My study: I have two periods that I will evaluate; 2008 - 2013 and th…
Stata seems to add spaces into path where there are none, wich leads to error messageDear statalist, I am using Stata/SE 15.1 for Mac. I am using a global to specify my path at the beg…
"By" and "Margins" command error; alternative approach?Hi Everyone, I am writing a thesis for my Honours year (Advanced Undergraduate Degree) and I am wri…
Subscribe to:
Post Comments (Atom)
0 Response to How to convert date variable to year group?
Post a Comment