Announcement

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

  • Can't edit lower/upper limits graph



    I'm trying to rescale the Y axis in my Autocorrelation graph, as you can see in the picture the minimum value of the Y axis is -0.05 and its maximum is 0.05, I want to change it to smaller values so I can see better how the data fluctuates.
    Intuitively I got to the table where you can edit the lower and upper limits of the Y axis, but I can't make them smaller than /0.05\.
    I'm afraid I'm missing something, if someone could tell me I would be pleased!

    Thank you very much!




    Attached Files

  • #2
    Sorry, but the screenshot is only partly readable.

    We do advise against posting screenshots for precisely this reason.

    You will need to post the syntax you last tried successfully to get much better advice. Stata will show you, even if you are using menus.

    However, plotting autocorrelations whenever abs(autocorrelation) << 0.01 is not a good idea unless you are in a course and your instructor insists.

    Comment


    • #3
      Hi Nick, thank you for answering. I'm quite new in stata and I have been looking at the manuals but I find hard to understand them.
      I have no idea how to translate the menus into syntax, I will have a look in the past posts looking if this has been asked previously.

      It looks like the autocorrelation of the residuals of my AR(1) model is below 0.01, concretely -0.0005, and they are not even significant, I might be misunderstanding my instructor's commands.

      Thank you for your time.

      Comment


      • #4
        RogerA Rey I think you might be running into a problem related to the difference between the scale and the axes. It looks like you are attempting to modify the axis labels in the screen shot, but based on your description it sounds like you want to limit the scale of the yaxis.

        Comment


        • #5
          If you use the menus, Stata will automatically echo the equivalent command in the Command window.

          Comment


          • #6
            Originally posted by wbuchanan View Post
            RogerA Rey I think you might be running into a problem related to the difference between the scale and the axes. It looks like you are attempting to modify the axis labels in the screen shot, but based on your description it sounds like you want to limit the scale of the yaxis.
            Hi W. Buchanan, yes exactly my main objective is to limit the maximum/minimum of the axis so I can see accurately the movements of the autocorrelation across the number of observations, because having it at 0.05 as upper limit and -0.05 as lower limit makes me unable to look at the variation. Another possibility would be to make a zoom, but I do not think is possible, I have been looking at all the possibilities in the graph editor

            Nick, as it doesn't clet me change the limits of the vertical axis stata doesn't record anything in the command window.

            Thank you very much!

            Comment


            • #7
              As I said in #2 (emphasis added): You will need to post the syntax you last tried successfully to get much better advice. Stata will show you, even if you are using menus

              Comment


              • #8
                Originally posted by Nick Cox View Post
                As I said in #2 (emphasis added): You will need to post the syntax you last tried successfully to get much better advice. Stata will show you, even if you are using menus
                Hi Nick, sorry for the delay, before using the menus I was using this command ac msft_resid2, lags(100), which is the autocorrelation for the residuals of a Realised Volatility Time series with 100 lags.

                But as the upper and lower limits cannot be changed I tried this command using the menus:

                ac msft_resid, lags(100) yscale(reverse) yscale(extend) ylabel(minmax)

                But neither can be changed, the limits are still at 0.05 and -0.05.

                Thank you a lot!

                Comment


                • #9
                  RogerA Rey instead of passing reverse and extend to the yscale options, try passing in the range of values you want the y-axis to take:

                  Code:
                  yscale(range(-0.2(0.025)2))

                  Comment

                  Working...
                  X