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
Latent class logit with lclogit: problem with choosing the number of classesHi statalist, I have run a latent class model with a discrete choice experiment data (9882 observat…
Convert non numeric values to numeric ones (destring, or encode not properly solve it)Deal all, I would like to convert some non-numeric observations in x1 (numbers not recognized as nu…
"no paths from latent variable to observed variables" LCADear statlists, I'm trying to do an LCA for 4 different variables, they are all continues. Using St…
create dummy variables for every certain range of values of another variableDear all, My problem is that I want to create dummy variables for different brackets of my wage va…
range of the estimate of the first differenced independent variable of dependent variable in dynamic panelhi, I am estimating dynamic panel model(n=50, t=15). My question is about the range of the estimate …
Subscribe to:
Post Comments (Atom)
0 Response to Generate time from date+time variable
Post a Comment