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
which method would be appropriate probit, logit, or anything else?Good morning, everyone, I am not very familiar with existing econometric methods, especially with s…
Graph with standard deviation on the y axisDear Stata users, I am trying to replicate the paper "Revisiting the German wage structure" https://…
Please help me troubleshoot converting string date("20100201") into the format Stata recognizes as dateHi, I was converting string date data (variable Fdate and Pdate, they look like "20100201") into num…
Merging variablesHi everyone, I have 4 binary variables: #1. Tested for HIV during antenatal care (coded as 0/1) #2.…
ImputationI am analysing a small number of patients (n=28) and want to do Spearman rank correlation. For one v…
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of dates in STATA
Post a Comment