Hi,
I briefly dug into this and could not find an answer. I have 3 variables: a date variable, a time variable, and an am/pm indicator for the date/time an incident was reported and for when it occurred. For each, I'd like to replace the 2 time variables with 1 military time variable. I think this involves the clock function but I'm getting error codes. Could anyone help? My dataset looks like this:
inci_id date_rept time_rept_1 time_rept_2 date_occu time_occur_1 time_occur_2
20013 1/1/2020 12:24:00 AM 1/1/2020 12:15:59 AM
Thank you!
Tom
Related Posts with using a separate time variable and am/pm indicator variable to generate a military time variable
how to generate an age variable that is not statichello, Please may you help me with this. How do you generate a date variable that is non static. I …
Vuong test for hedonic price model - RegressionHi all, I am trying to estimate a hedonic price model. The first step used is estimating the Box Cox…
How to run mlogit for panel dataDear guys: I'm a graduate in China, my thesis is about to check the relation between 1000 people's …
Calculation of mean for each industry quarter using egen, any quicker way!!Dear Statalist members, My dataset is something like this Code: * Example generated by -dataex-.…
regression with time trendHi everyone, I have pooled cross-sectional dataset for 2009,2011,2012,2014 and 2017. I am trying to…
Subscribe to:
Post Comments (Atom)
0 Response to using a separate time variable and am/pm indicator variable to generate a military time variable
Post a Comment