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
stjm error, blup calculation failedHello, I am currently trying to run a joint longitudinal survival model using the stjm command. I a…
Crossed random effects model-error r(3203)I have been running crossed random effects mixed models and the syntax that has always worked before…
STJM error BLUP calculation failedHello, I am currently trying to run a joint longitudinal survival model using the stjm command. I a…
Graphing interaction effect on multiple imputed negative binomial modelsHi. I have problems graphing the interaction effect I get after the following "main" commands. gen …
Survival timeDear Sir/Madam: When I try to set my data as survival time using stset command, it returns a message…
Subscribe to:
Post Comments (Atom)
0 Response to Generate time from date+time variable
Post a Comment