Dear all,
I have to convert a variable setting in "12 hours" to "24 hours". I divided the variable into v2= "time" and v3="AM/PM", and then added 12hours if v3 == "PM", but this creates a problem for the 12PM, that are converted to midnight.
The code:
Array
The output:
Array
I'd be grateful for any advice, thank you in advance,
Aurora
Related Posts with Convert time with a 12 hrs setting, to 24 hrs
How do I compare different levels of a categorical variable?I am trying to do a study to see whether different groups of households are dissimilar or not regard…
Using loop for tabout commandI am running the following command: Code: foreach var of varlist ` Age - Region Smoking Alcohol '…
Creating IRF plots after ARIMAHello, For reasons I cannot figure out, I am able to create IRF plots after an ARIMA regression usi…
"estimation sample varies between m=1 and m=2" errorHello Statalist users, I am working on a study that assesses the effects of family contact on the n…
Problems with MI diagnosticsHello there, I have imputed panel data and currently checking the model to see if it's an appropria…
Subscribe to:
Post Comments (Atom)
0 Response to Convert time with a 12 hrs setting, to 24 hrs
Post a Comment