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
When using esttab with the option mgroups(), how to center the group column title?Hi all, I'm a little confusion with the use of esttab. For example, for each sample I ran two regres…
problem unzipping files stata- I/O error on write could not perform unzipI apologize for the possible typos, english is not my mother tongue. I´ve been working on a loop to…
Variable Management > I got the following two variables in my dataset: > > Number1 Number2 > 000752 > 00…
synthhi all, i need help , iam using a synthetic control group , for a policy inversion for five cases(co…
Help with 1 group found, 2 required r(420) errorI tried running ttest on my DV (whosefault) and the IV (successcond) but for some reason, Stata tell…
Subscribe to:
Post Comments (Atom)
0 Response to Convert time with a 12 hrs setting, to 24 hrs
Post a Comment