Hi. I have hourly level data with the format, "2010123123" representing "23:00 Dec 31, 2010". I can convert it into time variable by using "double" but there is a problem for some observations. The data show "00:00 Jan 1, 2011" as 2010123124 and Stata does not automatically change it to the midnight next day and generate an empty cell, shown as below. I would really appreciate it if you could help me to correctly convert it into the next day format. Thank you very much!
Array
Related Posts with Error in converting time (hourly) variable
Inference with mixed and melogit with few units at highest levelDear Statalisters, I am seeking guidance on how to approach inference with multilevel mixed-effects…
survey data - 90% CIs for a proportion - tabulate or proportion?HI all, I'm analyzing survey data. I have a series of proportions and would like to produce standard…
Conversion of string to number changes numberHi, I am having trouble when Stata converts a variable from numeric to a string, as it appears to b…
Match observations in the concurrent year with observations in the previous yearDear all, I have encountered a problem when using propensity score matching to match observations i…
Sorting string variables- a couple of questionsDear Statalist, I've just ran a small pilot study, which is a 2*2 factorial survey conducted via the…
Subscribe to:
Post Comments (Atom)
0 Response to Error in converting time (hourly) variable
Post a Comment