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
Restrict AxisI would like to restrict the x and y axis of a graph that was made using the following command; sca…
Rolling window for VARHi I estimate a structural vector autoregression, imposing long-term restrictions, and estimate the …
Nested loop question (index changes for every loop)Hi, Thanks very much in advance for your time. I want make the following commands into the nested lo…
Test hypothesis using StataI have the following regression model Array That corresponds to the following dataset: Array How …
qreg converges in Stata/IC 15.0 (& gives reasonable standard errors), but fails to converge in Stata/MP 17.0Dear All, I have a household-level dataset of 511,877 observations, and run a quantile regression o…
Subscribe to:
Post Comments (Atom)
0 Response to reformat (destring) var question
Post a Comment