Hi,
How can I convert strings like "01/03/1997", e.i. of type "DD/MM/YYYY", to a new numeric variable for the month and one for the year?
I would like to have a variable with the value 3 (month) and one with the value 1997 (year).
Many thanks.
Related Posts with From string date "DD/MM/YYYY" to month and year variables
Calculating the share of respondents with certain preferences in Discrete Choice Experiments -mixed logitDear Stata users, I have been trying to replicate the following paper from Arne Risa Hole (2007) : …
KHB - Question on negative confounding percentageDear Stata users, I have a question on the interpretation of KHB command output. The output is the …
Regression models with exposure, outcome, and GROUP of covariates in one loopHi All - just struggling to get some basic regression code to work how I want it in Stata. Imagine i…
GLM and SQREG heteroscedasticity analysisHi all, I'm trying to analyse the heteroscedasticity posteestimation of my two possible models regre…
mediation analysis using -ldecomp- commandHello Stata users, I am trying to perform the mediation analysis. Combined indirect effects of medi…
Subscribe to:
Post Comments (Atom)
0 Response to From string date "DD/MM/YYYY" to month and year variables
Post a Comment