Announcement

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

  • Panel regression with control variables

    Hello,

    I am running a panel regression in STATA and would like to ask how to add control variables to the model. Thanks!

  • #2
    Victoria:
    in the right-hans side of your regression equantion (as usual) you can plug in both regressors and control variables.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      Dear Victoria,

      In addition to Carlo's very helpful response, you may want to look into the user written command reghdfe. If you are not interested in these covariates but just have to control for them, you can enter them in the absorb() option. This may increase computing speed, and will yield identical results in light of the Frishc Waugh Lovell theorem.

      Comment


      • #4
        Originally posted by Carlo Lazzaro View Post
        Victoria:
        in the right-hans side of your regression equantion (as usual) you can plug in both regressors and control variables.
        Do you mean, I could add all the independent variables together with control variables to one line?

        Comment


        • #5
          Originally posted by Victoria Romanova View Post

          Do you mean, I could add all the independent variables together with control variables to one line?
          Yes

          Comment


          • #6
            e.g.
            Code:
            reg y X1 control_var1 control_var2

            Comment

            Working...
            X