Announcement

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

  • Interaction term interpretation

    I want to generate an interaction term in Stata. I have the variables Terrorism (a continuous variable) and Religiosity ( a binary variable). What Stata command should I use?

  • #2
    Unless you are using a very old version of Stata, or need to run a very old user-written command, there is hardly ever any need to create an interaction variable in Stata. Interaction terms in Stata regression commands can be created automatically by using Stata's factor variable notation. For example:
    Code:
    regression_command ... c.Terrorism##i.Religiosity ...
    Do read -help fvvarlist- for a full explanation of how Stata's factor variable notation works.

    If you are working with very old Stata or a very old user-written command, then see -help xi-.

    Comment


    • #3
      Thank you sir

      Comment


      • #4
        # invalid name
        r(198);
        the above command shows this error

        Comment


        • #5
          What version of Stata are you using? And please show the complete exact command that is raising this error message.

          Comment

          Working...
          X