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
Panel Data- Working with the ID`sHello, Statalisters I am working with an Unbalanced Panel Data with information about sales, capita…
Skewed continuous outcome in mediation (SEM)Hello, I am conducting a mediation analysis using SEM. My continuous outcome is skewed. I wondered …
lpoly - problems using large datasetThe lpoly command works fine as long as my dataset is not too large. Using a dataset with about 45,0…
Stata internal command to obtain only least squares coefficients; quick/stripped version of the regress commandDear all, could you please tell me the name of the Stata internal command that only estimates coeffi…
Plotting an InteractionI am trying to plot the effect on Value of an interaction between Trend and Experience, at high vs. …
Subscribe to:
Post Comments (Atom)
0 Response to Error in converting time (hourly) variable
Post a Comment