Announcement

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

  • Remove variable name for binary variable using etable

    I'm using etable to report the results of my logistic regression

    I have a dummy variable which I put in the model as "i.dummy_variable"

    etable reports it in the table like so:
    Code:
    Dummy variable
    1                                  15.6****
    I want this instead:
    Code:
    Dummy variable     15.6****
    How can I achieve it?

  • #2
    if this is actually just a binary variable coded 0/1, just leave off the "i." (unless, of course, you need it for later use of -margins-)

    Comment


    • #3
      I'm interacting it with another continuous variable, so I need the i. for the interaction term

      Comment


      • #4
        Similar thread just here today: https://www.statalist.org/forums/for...s-interactions. Following Rich's advice, if you have a 0/1 dummy, you can write

        Code:
        i.dummy##c.cvar
        as

        Code:
        c.dummy c.cvar i.dummy#c.cvar

        The latter syntax will produce the table that you want, but is inappropriate for postestimation commands such as margins.

        Comment

        Working...
        X