Announcement

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

  • Inclusion of all dummy variables into a regression

    Hello all,

    Just a very basic question RE dummy variables:

    In my data set, I have a variable called AGE. I have made a dummy for every year of age by using the following code:

    tabulate AGE, generate(AGEdum)

    This has chucked out the age dummies AGEdum1, AGEdum2, ..., AGEdum69

    What is the short way of coding for all of these variables to feature in a regression, instead of having to manually type them all out?

    Thanks in advanced for your help

  • #2
    Freddie:
    welcome to this forum.
    See -help fvvarlist-.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      while Carlo Lazzaro has the best option (because of the link to -margins- among other reasons), as a general matter you should check out
      Code:
      help varlist

      Comment


      • #4
        Carlo and Rich,

        Thank you both very much

        Best,

        Freddie

        Comment

        Working...
        X