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?
Difference-in-difference with multiple treatments and multiple time periodsDear Statalisters, I have job level data and I am trying to estimate the impact of US state labor r…
Panel data regression with high coefficients valuesDear All I have estimated a panel regression with command ' xtreg, fe cluster(id)'. (22 panels and …
Duplicates HelpI'm starting a new thread (old one was: https://www.statalist.org/forums/for...ific-duplicate) but I…
Out-of-sample R2 forecastingHi everyone. Im currently writing my thesis and got advised to compare In-sample vs Out-of-sample p…
STATA commands for PSTR modelHi Team Can STATA 14 run PSTR model? If it does can someone assist with the commands please. …
Subscribe to:
Post Comments (Atom)
0 Response to How to convert date variable to year group?
Post a Comment