Hi all,
I am trying to get mean and sd for a time variable with hour and minutes , but I got differents numbers that I expected:
Example:
Please any comments I would grateful
Regards
Rodrigo
I am trying to get mean and sd for a time variable with hour and minutes , but I got differents numbers that I expected:
Example:
Code:
clear all set more off * Example generated by -dataex-. For more info, type help dataex clear input byte patid str14 discharge_t 1 "20110629 10:27" 2 "20110326 2:15" 3 "20110409 19:35" 4 "20120216 2:15" 5 "20120802 11:59" end generate hora = clock(discharge_t, "YMDhm") format hora %tcHH:MM sum hora . sum hora Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- hora | 5 1.63e+12 1.87e+10 1.62e+12 1.66e+12 When I tried to get mean only for 1 first observation I should get 10.27 sum hora in 1 Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- hora | 1 1.62e+12 . 1.62e+12 1.62e+12
Regards
Rodrigo
Comment