Hi Hi, I am relatively new to stata and want to reformat a variable.
the var is named p3_start_TS,
and it is a string and looks like this: 26-10-2018 10:08:59
I want to format it to a numeric var with the following format: format %tdDD/NN/CCYY p3_start_TS.
but I just cant seem to get the code right.
thanks!
Related Posts with reformat (destring) var question
Test whether multi-level analysis is neededHi Statalist members, I was wondering whether there is any explicit test that can tell me if I need…
Drop many variables with same answer in the observationsHi, I'm working with a database from a University. In the observations there are a lot of variables …
Vertically truncating Kaplan-Meir survival curve upon reaching specified minimum threshold.I am trying to vertically truncate Kaplan-Meier survival curves when they reach a certain threshold …
Error rdplotI have a problem regarding a regression discontinuity design. I use panel data, where I have two yea…
Random Effects vs Fixed Effects model issues with Hausman Test (V_b Vb not positive definite)Dear Statalister, I have an unbalanced panel dataset for 5817 (N) firms per 8 years (T). I'm runnin…
Subscribe to:
Post Comments (Atom)
0 Response to reformat (destring) var question
Post a Comment