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?
IV Probit error: "could not find initial values"Hello All! Does anyone have an idea why this error message could be popping up? Or what does it mea…
Drop observations after the last non missing value a variableHi, I would like to drop observations after the last non missing value of the variable WC01001A by …
IV Probit error: "could not find initial values"Hello All! Does anyone have an idea why this error message could be popping up? Or what does it mea…
ADF, Stationary/Non Stationary DataHi everyone. I was trying to check my data to see if I have stationary or non stationary data. I a…
Proportional Reduction in Error and Percent Correctly Predicted after Multinomial ProbitDear Colleagues, I am using Stata 14.2 to estimate a multinomial probit model of vote choice in the…
Subscribe to:
Post Comments (Atom)
0 Response to How to separate 2 dates that are currently in 1 variable?
Post a Comment