I have a continuous clock variable, with a cumulative count over time.
I want to plot the counts over time. I want the x-axis (time/clock) to bin by day of the month.
twoway scatter screen_cum screen_clock, xlabel(#23, format(%tcD))
But Stata insists on only displaying 19 daily bins on the x-axis. How can I force one per day?
I'm guessing it's doing something it thinks looks nice, and putting a tick every 1.15 days or something, in an arbitrary position within a day.
Ideally, I would have them binned with labels as in Dr. Cox's Stata Tip 55, but I think this is beyond me for now.
Thanks much!
Array
Related Posts with Bin by day on x-axis from clock
Time series means of coefficient estimates from cross-sectional regressions.Hi all, I have 29 annual cross-sectional regressions that I want to summarise the findings in a sin…
Workflow for Stata for Windows ReleasedI have been developing a set of customized keyboard shortcuts for the past couple of years to create…
Create a variable (0/1) based on multiple variables containing stringHello, I want to tell stata to create a variable giving a code of 0/1 based on around 200 variables…
Mistake in loop for renaming variables of several datafilesDear Statalists, I have ten identically structured excel files which correspond to ten different yea…
Use a substring of a variable name to refer to likewise named variablesDear forum, I have a number of datasets, each consisting of various years. On each file I run the sa…
Subscribe to:
Post Comments (Atom)
0 Response to Bin by day on x-axis from clock
Post a Comment