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 test Interaction in Logistic Regression with categorical independent variables (1 is dummy, other one has 4 categories)?I am trying to test for interaction effect in my logistic model where outcome is dummy and the two i…
Calculating Rolling Statistics for Panel Data With a Varying Window of ObservationHello Statalist, I would like to create some code which can calculate various statistics (moving a…
PARAMED code for a continuous treatment and a continuous mediator, how to set a0() a1() and m()Hi, I am using the PARAMED package for my mediation analysis for a count DV. The code is working, bu…
derive cut-off score at fixed sensitivity level (ROC analysis)Dear Statalist friends, I am fairly new to stata (and ROC analysis), so please forgive me if I am s…
ivreg2 panel data analysis with dummy control variablesDear STATA Community, i am estimating following model using panel data with dummy control variables …
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