Hello All,
I am a beginner with Stata, and I have a Time variable that looks like this:
Time
31dec1899 00:01:00
31dec1899 00:02:00
31dec1899 00:03:00
31dec1899 00:04:00
31dec1899 00:05:00
31dec1899 00:06:00
31dec1899 00:07:00
31dec1899 00:08:00
31dec1899 00:08:59
31dec1899 00:10:00
The storage type for this variable is double and display format %tc.
1. I just need the time, that is 00:01:00. How can I generate it from the variable?
2. Additionally, How do i change the time of 00:08:59 to 00:09:00?
Thank you,
Sarah
Related Posts with Generate time from date+time variable
Unbalanced panel data with N>THi Everyone, I have unbalanced panel data with N=432 and T=5; I use these following command to set …
First difference with panel data with multiple observations per yearHi! I am wondering if it is at all possible to do a first difference regression with panel data tha…
System GMM for convergence equationsDear Statalist users, I hope this thread finds you well. I’m working with xtabond2 command in Stata…
Speed up modelHi, I am trying to find the best combination of number of groups and polynomials in a model. I am u…
How to import data from Excel sheet to existing stata 12.0, If the data file in stata already created......!I have a created a file in Stata 12.0 and import 30 responses from Excel sheet which i have collecte…
Subscribe to:
Post Comments (Atom)
0 Response to Generate time from date+time variable
Post a Comment