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
xtgcause interpretationI have run a test for Granger non-causality in heterogeneous panels using the procedure proposed by …
FIXED EFFECT MODEL, small saple size.Dear all, I am regressing the impact of Netflix subscriptions on theatrical admissions in 16 countri…
Export Regressions to Different Sheets in Same Excel Doc.I have been trying to figure out a way to automate my regression output such that each set of regres…
Renaming variable labels to be one number lower (Q141 to Q140)Good Morning, I am looking to rename my variables so that the numeric value is one less than what i…
Concentration curves of a dichotomous variableHi, I am new to the forum and stata itself. I need help in drawing a concentration curve. I am tryin…
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of dates in STATA
Post a Comment