Announcement

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

  • What does two consecutive hash marks mean?

    From reading the function in xtdidregress released for Stata 17 as described here. On the page 11 and 12, I saw a description and regression as below:

    Suppose we have a panel dataset with 10 time points, denoted by t1, where a treatment has taken place between t1 = 5 and t1 = 6. We have a set of covariates, x1 and x2, and an outcome, y1
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	71.3 KB
ID:	1682400


    I am wondering what does the two hash marks mean in this case. From my point if we want to list two set of variables c1 and c2, we should put
    Code:
    $c1 $c2
    Best regards.

  • #2
    two consecutive # tell stata you want to include each variable individually and their interaction

    Comment


    • #3
      It's shorthand for two continuous predictors and their interaction, that is:
      Code:
      c.x1 c.x2 c.x1#c.x2
      At Stata's command line, type
      Code:
      help fvvarlist
      for more information.

      Comment


      • #4
        Dear Maxence Morlet and Joseph Coveney

        Thank you so much, I got the point.

        Comment

        Working...
        X