Announcement

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

  • Multiple regression with a set of binary variables

    Hi everybody,

    for my diploma thesis I'm trying to figure out how certain variables (e.g. the surface, the difference in ranking aso.) influences the betting-odds for male professional tennis players.

    I've also create a dummy variable for each considered player (to figure out if for instance more famous players like Federer, Nadal or Djokovic are treated differently than not so famous players).

    Therfore I've about 100 player-dummies.

    Now i want to run several regressions and I don't want to type in each dummy's name in the command-line.

    Are there any possibilieties to group them or use just one command which include all of them into the regressions?

    Thanks in advance

    KR
    Robert

    P.S.: I'm from Austria (NOT Australia - ggg). Therefore English is not my mother tonugue and I want to appologize for grammer, expresion or spelling errors.


  • #2
    Welcome to Statalist! See help varlist for advice on forming lists of variables.

    If you named the dummy variables starting with the same few letters (like d_federer d_nadal) then d_* would include all the variables that start d_. If you didn't, but they are grouped together in your list of variables (like surface federer nadal djokovic odds without any non-player variables mixed in) then federer-djokovic would include the variables starting with federer and ending with djokovic.

    I hope Roger, Rafa, or Novak never read this post and see us apparently calling them "player-dummies". (In English, calling a person, as opposed to a variable, a dummy is not a compliment!)

    Comment


    • #3
      Robert:
      as an aside to William's helpful advice (btw: his last statement was really funny), if you have a large set (this word seems particularly appropriate in this instance!) of mutually exclusive and exhaustive dummies, you may want to take a look at -help areg- and related entry in stata .pdf manual.
      As mentioned in my profile, I'm very fond of tennis, too and took my first steps on a tennis court during the Borg vs McEnroe era (I preferred Wimbledon to the British Museum when I visited London for the first time - 1980).
      Kind regards,
      Carlo
      (Stata 19.0)

      Comment


      • #4
        Thank you very much Carlo and William for your advices!

        By the way - it 's the same in German. The word "dumm" refers to a silly person. Therefore the expression "dummy" often provokes smiles on the faces of German (or Austrian) statistic students. ;-)

        Comment

        Working...
        X