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?
Counting observations from a multivariate logistic regressionHello, I wish to know how I can determine the number of observations for an outcome variable (case …
Using foreach to graph many variables vs one dependent variable on separate graphsHi all, I am not familiar with the foreach command and have been trying to loop a twoway scatterplo…
Average marginal effects interactionHello everyone, I would like to compute average marginal effects (AME) out of an interaction of GDP…
Betas greater than oneHi Statalist member, I have run a regression of cash flow volatility (s_oina_v1_w01) on several ind…
Problem with nl parameter estimationDear comunity, I ndd your help in order to find te error in my code because I've been trying to get …
Subscribe to:
Post Comments (Atom)
0 Response to How to convert date variable to year group?
Post a Comment