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
Measuring Spells - two special cases in panel dataHi Statalist. I have code to identify and measure the length of a spell - the spell relates to coup…
Keeping only unique combination of observations in 2 columnsHi I have observations in two columns. Many of the values get repeated. I would like to keep only un…
Different number of decimals for different scalars in esttabHello! I am adding several scalars to my regression table and want different numbers of decimals fo…
What is the best method to test these relationships with Stata? Multiple regression? SEMDear all, I hope you can give me your opinion about this. I have to test the following relationship…
GEE: results significant only with independent and exchangeable correlation structureHello there! I am trying to fit a GEE Poisson model on a panel dataset consisting of T=360 and N=30…
Subscribe to:
Post Comments (Atom)
0 Response to Manage dates with different digits
Post a Comment