Announcement

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

  • What is the code for constructing a histogram of the residuals in a linear and log linear model

    I have observations on hourly wage rates, education, and other variables from the 2008 Current Population Survey. I constructed a histogram of the wage variable and natural log of the wage variable using the code:

    hist wage
    hist lnwage

    Using stata, how would I now construct a histogram for the residuals of the linear and log-linear model? I tried using the "rvpplot" command but I'm not sure if I used it correctly. Furthermore, is there a code I can use for testing the Jarque-Bera test of normality?

    Thanks in advance.

  • #2
    What model are you referring to?

    Comment


    • #3
      After such regressions, you can put residuals in a variable using e.g.

      Code:
       
      predict res, res
      after which standard distribution graphs are possible

      Comment


      • #4
        Never mind I figured it out! Sorry about the confusion.

        Comment


        • #5
          Thanks!

          Comment

          Working...
          X