Announcement

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

  • Need help on this multiple regression calculation

    Hello,

    I was doing this multiple regression calculation for my stats class, and for some reason, I keep having this pop up for educ (education) and inck (income)

    reg realinc educ inck

    Source | SS df MS Number of obs = 2,146
    -------------+---------------------------------- F(2, 2143) = .
    Model | 2.0859e+12 2 1.0430e+12 Prob > F = .
    Residual | 0 2,143 0 R-squared = 1.0000
    -------------+---------------------------------- Adj R-squared = 1.0000
    Total | 2.0859e+12 2,145 972455973 Root MSE = 0

    ------------------------------------------------------------------------------
    realinc | Coefficient Std. err. t P>|t| [95% conf. interval]
    -------------+----------------------------------------------------------------
    educ | -4.56e-06 . . . . .
    inck | 10000 . . . . .
    _cons | -.0000208 . . . . .
    ------------------------------------------------------------------------------
    Last edited by Aansa Usmani; 29 Oct 2022, 18:21. Reason: forgot to add tags (first time posting :/)

  • #2
    I don't understand.

    Comment


    • #3
      Here’s a picture to get a better understanding of the issue
      Attached Files

      Comment


      • #4
        You're measuring the same thing as you're predicting. Hence, you've no need for standard errors or their counterparts

        Comment


        • #5
          is this normal?

          Comment


          • #6
            Well, no. Let me give an example. Say you're a sports team. You win 20 games and lose 20 games one season, and win 15 and lose 15 the next. Your goal is to explain how many games you won. You can't include how many you lost as a predictor because there's a perfect relationship between these. It violates the multicollinearity assumption. In fact, you have PERFECT collinearity in this case. Otherwise, you couldn't have a 100% R squared or a 0 Residual score, this just doesn't ever happen in real life.

            The issue here is that you've coded one of these variables improperly

            Comment


            • #7
              How can I tell if there's been a variable that's been coded improperly?

              Comment


              • #8
                How can I tell if there’s been a variable that’s been coded improperly?

                Comment


                • #9
                  Cross-posted and answered at https://www.reddit.com/r/stata/comme...ression_issue/

                  Please note our cross-posting policy which is that you well us about it. https://www.statalist.org/forums/help#crossposting

                  Otherwise, there is nothing improper about having two versions of the same variable. What isn't helpful is to use both in a regression.

                  Comment

                  Working...
                  X