Hello all, this is my first post on this site. I am currently dealing with a variable whose entries look like this:
10/11/2006-26/01/2012 (in string format)
I would like to separate the two dates into two new variables. How should I go about that? I've been trying to use strpos() and related, but not all the variables have the same length of dates (as in sometimes is 01/01/19 and sometimes 1/1/19).
Thanks,
Kristina
Related Posts with How to separate 2 dates that are currently in 1 variable?
Optimize by minimizing the value of an equation to get a parameter value for each observationDear Everyone, Software Used: STATA 15.1 I am trying to get a parameter value (R) for each observa…
GMM Xtabond2Hi friends, This is my first experience for GMM. help me, please. I should examine the relationshi…
Generate a variable with the count of the value 3 across several variablesHi, I would like to generate a variable that contains the count of the value 3 across several column…
Difference in Difference with multiple treatment periods and multiple treatmentsGood day all! This is my first post on Stata list. Please let me know if any additional information …
Fractional Dynamic ProbitHello all, for my master thesis on bank's NPL, after having estimated the determinants of bad loan w…
Subscribe to:
Post Comments (Atom)
0 Response to How to separate 2 dates that are currently in 1 variable?
Post a Comment