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
how to write condition for calculating spells?Hi. I have a dataset with the revenues of firms through time, monthly. For example: Code: date …
Merging datasets not uniquely identifiedHello Statalist, I'm currently trying to to merge two data-sets which contain several matching varia…
How to test validity of instrument in Eoprobit command with endogenous treatmentI am running following command with treatment t=(1,0): eoprobit y x1 x2, entreat (t=X1 X2 Z1 Z2) Ho…
Please help: tsset with loopsHello everyone, I would like to do time series for different combinations of variables. My data set…
Match it OutputHi all, I am trying to match administrative names from two datasets that have multiple lengths/spel…
Subscribe to:
Post Comments (Atom)
0 Response to Manage dates with different digits
Post a Comment