Announcement

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

  • What does "adj" in this code mean?

    I faced a code a below and I do not understand what does adj mean here

    Code:
    predict adj, residuals
    reg adj i.treat, cluster(firms) nocons
    I guess it is adjusted standard error for clustering on firms but I am not sure about that
    Last edited by Phuc Nguyen; 07 Jul 2021, 04:14.

  • #2
    no, "adj" is the name of the outcome (dependent, response) variable in the data; see
    Code:
    help regress

    Comment


    • #3
      Since the predict command comes before the regress command, I'm going to assume that this is part of a wider process in which the residuals from a first regression are then passed to a second regression. In which case:

      predict adj, residuals

      ... means "take the residuals from the previous model, and store them in a new variable named adj ";

      and...

      reg adj i.treat, cluster(firms) nocons

      ...means "fit a linear regression in which the recently-created variable adj is dependent upon variable treat, with cluster-adjusted standard errors by firms, and with no intercept term".

      See help predict and help regress for syntax diagrams.

      Comment

      Working...
      X