Announcement

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

  • Doubts about using xi: command

    Hello Stata users: I'm new in Stata, and would like to ask a question related to the use of the command xi: I've been reading about this command, which can be really useful when we do a regression that might have too many Dummy Variables. Now my question is: Is there any way to avoit omitting the smallest value of a variable when using xi:, so I can include all the values in the model? As an example I have this.
    I'd like to avoid the smallest values of my data to be excluded. .
    xi: regress dep1 exporta I.year I.ciiu3_2d
    I.year _Iyear_1995-2007 (naturally coded; _Iyear_1995 omitted)
    I.ciiu3_2d _Iciiu3_2d_15-36 (naturally coded; _Iciiu3_2d_15 omitted)
    Cheers, Robert.

  • #2
    Robert:
    I would take a look at -fvvarlist-
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Thanks a lot for the information!

      Comment


      • #4
        Carlo is certainly right about factor variables being vastly superior to the old xi: (It amazes me how xi: continues to live on so many years after it is usually no longer needed).

        But as for the rest of your request -- "Is there any way to avoit omitting the smallest value of a variable when using xi:, so I can include all the values in the model?" That is going to be a problem. If there was only one categorical variable you could use the nonconstant option, but since you have two something is going to have to give somewhere. In most cases I think trying to use noconstant causes problems and isn't really worth it. If you prefer to use a different reference category that is easily done with factor variables.
        -------------------------------------------
        Richard Williams, Notre Dame Dept of Sociology
        StataNow Version: 19.5 MP (2 processor)

        EMAIL: [email protected]
        WWW: https://www3.nd.edu/~rwilliam

        Comment


        • #5
          Thank you Richard, I really appreciate your help.

          Comment

          Working...
          X