Announcement

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

  • Index plot for residual diagtostics

    Hello dear forum members,

    I came across this way to diagnose the variance of the residuals (please see attached):

    - reg y x1 x2, vce(hc3) - robust SE for heteroskedastic data
    - predict r1, res
    - generate index=sum(1)
    - twoway line r1 index

    What is this "index" measure? I do see there is heteroskedasticity issue, but how shall I interpret the trend?

    Thank you in advance,
    Anton

    Click image for larger version

Name:	Screen Shot 2014-10-31 at 2.04.29 PM.png
Views:	2
Size:	90.3 KB
ID:	379285
    Last edited by Anton Ivanov; 31 Oct 2014, 12:15.

  • #2
    I can't see your attachment - please see the FAQ

    the "index" is just the order of the data; this can be particularly useful when you think that problems might be related to the order of the data

    Comment


    • #3
      Your attachment is not visible, at least not on my set-up. Attachments tend to work poorly on this forum in any case.

      The variable index is just the sequential observation number: it is 1 in the first observation, 2 in the second, etc. It could have just as easily been coded as -gen index = _n-. So the interpretation of the trend depends on the sort order of your data. If your data are sorted on some variable, then the trend will show how the residuals trend up or down with that particular variable.

      If your data are not sorted on any particular variable, then I do not think the trend means anything at all.

      You might also want to look at the built-in commands -rvfplot- and -rvpplot-, which you might find more helpful than this approach.
      Last edited by Clyde Schechter; 31 Oct 2014, 12:15.

      Comment


      • #4
        I apologize for this technical issue. Please check now.

        Comment


        • #5
          Originally posted by Clyde Schechter View Post
          Your attachment is not visible, at least not on my set-up. Attachments tend to work poorly on this forum in any case.

          The variable index is just the sequential observation number: it is 1 in the first observation, 2 in the second, etc. It could have just as easily been coded as -gen index = _n-. So the interpretation of the trend depends on the sort order of your data. If your data are sorted on some variable, then the trend will show how the residuals trend up or down with that particular variable.

          If your data are not sorted on any particular variable, then I do not think the trend means anything at all.

          You might also want to look at the built-in commands -rvfplot- and -rvpplot-, which you might find more helpful than this approach.
          Ok, I see. Thank you, Mr. Schechter. Once I sorted it on a particular variable, it made perfect sense.

          Would (A) -boxcox- transformation, and/or (B) -vwls- with sigmahat=sqrt(resid^2) as estimate of conditional SD -- be proper ways to then check the robustness of the OLS estimation under vce(hc3)?
          Last edited by Anton Ivanov; 31 Oct 2014, 12:59.

          Comment

          Working...
          X