I have a date variable in STATA in the format 13jul2000. I want to convert it into a date with
gen new_date = date(date, "DMY") format date %td
However, the date is given in float instead of string. Is there any way to convert the variable into a string without changing the input?
Related Posts with Conversion of dates in STATA
Probit with endogenous binary regressorHello I am using ivprobit for my regression with a binary outcome variable. The help file suggests t…
Saving ado fileDear Statalist, I am having difficulties with saving ado file. I don't understand where to save the…
Propensity Score MatchingHi everyone, I am still figuring out PSM for my study.I am having trouble in the first step matchin…
Correlation Coefficient and logarithmic variablesHi, I am working on some data containing 1400 observations over a 7 year period, whereas the observ…
Generating geographical group variables from Household IDHi, I am using STATA 14, I am interested in generating a new variable from household ID, which is a…
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of dates in STATA
Post a Comment