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
transfering data to excelHello everyone, When trying to export my probit output table to excel, i get an error. the table is…
probit regressionWhen conducting the probit regression, i get multiple omitted variables. How do I solve this? By reg…
VAR ResidualsDear Stata users, I have a VAR(1) model and need to get the residuals from each equation in the var.…
ICD 10 Codes extractionHello everyone, I am new to Stata and currently working with Stata 15. Please I urgently need help…
Help creating a dummy columnHi guys! I need help creating a new column in my dataset (provided below). Code: * Example gener…
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