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
Multicollinearity and dummy variablesHello, first time poster here. Having a little trouble with something and was looking for a bit of h…
Question about creating new values for each year, (summing issue)Hi, I am trying to create a new column where it shows the average value of another column for each …
Use of binary explanatory (control) variables in Difference-in-Difference EstimationHi all, I am conducting a Diff-in-Diff with the following data, which is copied in here by using th…
replacing values in a loopDear All This is my first post on statalist. I have a household survey data (119,018 observations).…
How to get residuals series of many regressions?Hello, I want to run 500 regression in one command. dependent series are Y1 to Y500 and three indepe…
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