Hi everyone, I'm looking to convert an integer variable into a time variable. The integers are all between 0 to 2359, and I want to tell Stata that these are 24-hour format time entries. I've looked at the documentation (chapter 24 and 25) but I still don't know how to do this. If anyone could help me this would be much appreciated. Thanks!
The data looks like this
Starttime
0
800
900
1300
Related Posts with Time Variable Conversion
precoin error 3301When I run precoin using the sample data of 100 obs, it works successfully. However , it doesn't wor…
Stata 17 snapspan does not workAfter I upgraded to Stata 17, I experienced an error message when I ran snapspan syntax. I believe i…
STATA LOOP for Data Managementfor the dataset like the following, I want to change the value of G7_A6 which is either 1 or 2 based…
reshape from wide to long with string variable defining new variables in long formatHello all, I am struggeling with reshaping my data from wide to long. I want to use a string variabl…
CI 95% generated by Meta set is slightly different than the CI generated by Metan codeI have been using STATA 14 for so long and I have run a lot of meta-analysis with no trouble. Recent…
Subscribe to:
Post Comments (Atom)
0 Response to Time Variable Conversion
Post a Comment