Hello everyone, I'm brand new to learning STATA, so I apologize if I am omitting any pertinent information. I have looked through previous posts on this topic, but am having trouble understanding how to code it.
I am attempting to extract the year from the date listed.
The data is currently listed in this format: testdate is 2012-03-12 00:00:00
I would like to simply create a new column with the year from the testdate column.
I really appreciate the help.
Thanks.
Lori
Related Posts with Help Extracting Year from Date
Fractional RegressionHello, I have to perform a regression and my dependent variable is a probability. My two independen…
How to do a EM for my mixture modelDear statalist: I want to do a mixture model of two ols whose coffients are constrained to be same.I…
Common Trends QuestionFellows! I'm sorry for what is a probably basic question but I'm really needing help. I'm currentl…
Looping correlation between variablesHi, With following data: Code: * Example generated by -dataex-. To install: ssc install dataex cle…
Interaction with instrumented variableI am measuring the impact of distance to the nearest city on employment outcomes. Y = b0 + b1*X1 + …
Subscribe to:
Post Comments (Atom)
0 Response to Help Extracting Year from Date
Post a Comment