Dear Stata users,
I'm using the Stata 17 MP and want to manipulate dates with different digits (see below).
In the first row, for instance, I have "9012002" (7 digits), meaning 09dec2002. In the third row, I have "29052000" (8 digits), which is 29mai2000.
I tried to transform the dt_admissao variables in many ways, but unfortunately, I could not obtain operationalizable dates. Could you help me solve my problem?
* Example generated by -dataex-. For more info, type help dataex
clear
input str8 dt_admissao
"9012002"
"1022002"
"29052000"
"17122001"
"1022002"
"1032000"
"1082001"
"1092002"
"1081995"
"1032001"
end
Related Posts with Manage dates with different digits
Fitting latent class analysis model within continuous and binary variablesDear Stata Users, I am trying to estimate the following model: Code: Profit Domestic_Good Govern_a…
Generating variable means with various length within a loopHi everyone, I want to generate several variables measuring the mean of a variable (here it's calle…
Calculating across observations or across variables in panel dataDear Statalist, I am quiet new to Stata (Version 14 SE on Windows 10) and I am facing the following…
Random distribution simulation.Dear Statalist users, For my thesis I am trying to replicate a part of this paper. However, I have …
new variable for each panel unitDear Stata forum colleagues, I have learnt a lot by following older threads before, but this is my f…
Subscribe to:
Post Comments (Atom)
0 Response to Manage dates with different digits
Post a Comment