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
MC Simulation: How to return regression results for multiple regressions?Hello, I am attempting to return coefficient results from multiple regressions using a simulation. …
"Variables do not uniquely identify the observations" error when mergingHi everyone. I am trying to merge two datasets constructed from German SOEP data. The datasets have …
2SLS with count data in second stageDear all, I would like to run a 2SLS regression using longitudinal survey data where the the res…
Generating variable that measures the difference between the last and first yearDear Statalisters, I am trying to generate a variable that measures how much the CPIA index for ins…
Stata function equivalent to Excel's Norm.dist (CDF?)Hi, I'm trying to create a new variable which is the cumulative normal distribution of another varia…
Subscribe to:
Post Comments (Atom)
0 Response to Generate time from date+time variable
Post a Comment