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
Bootstrap two stagesHi all, I am trying to perform the following: extract n bootstrap samples from a strongly balanced …
georouteHello, I've a list of pair of coordinates for varX and varY and I'm using georoute to calculate the …
How to best combine/compare a multitude of conditional marginal effect plotsI'm doing a marginal analysis on my fixed effects model and looking for best practice to compare con…
Keep perfect predictor for marginsplotDear all, I am using mixed and melogit to compute growth curve models. I created a selective sample …
catplot: combined graph, 12 categorial variables over 1 categorial variableDear Statalist, I could use some help with a graph I am trying to produce. This is my data: Code: …
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of dates in STATA
Post a Comment