Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Narrow range of graph using cibar

    I am trying to plot a chart with confidence intervals, where I know the variable is bounded such that it is always >=0. However, for some cases my CI is negative, causing the chart to include negative values for y, as in the following (nonsense) example:

    Code:
    sysuse auto
    replace price = price-4000
    cibar price, over1(rep78)
    Adjusting the yscale does not work, as this only allows me to expand the scale. Is there anyway to narrow the y-axis without subsetting the data?


  • #2
    you don't say how you are computing the CIs but that appears to be your problem; if you provide more information, maybe someone can help; -cibar- is a user-written command, as the FAQ asks that you explain, never having used it, I don't know whether it is computing your CIs or just taking up CIs calculated in some other way; in general, however, Stata will not allow you to "hide" data by restricting the range of a graph so you need better CIs

    Comment

    Working...
    X