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
artbin: Extended sample size for randomised trials with binary outcomesDear Stata List I am very happy to announce a major update to the user-written command artbin, vers…
Interpreting interaction in probit with endogenous covariateHi all, My model is an ordered probit regression with an endogenous covariate. The dependent variab…
How to create dictionary file from SEER that Stata can read?Hi I am very new to this, so hope the question is making sense. From SEER, i was able to export a t…
Line graph connecting the mean values of several variablesHi Stata Loving People, I am stuck on a problem. I want to create a graph showing the mean value …
Help with spset and grmapHello everyone, I am currently working on making some maps in which I need to create a zoom on a se…
Subscribe to:
Post Comments (Atom)
0 Response to Error in converting time (hourly) variable
Post a Comment