Announcement

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

  • clustering in xtologit

    Hi everyone,

    so I have this example here that I would like to run. If I do the same with xtreg it works perfectly fine. Why is that? Can anyone explain?


    . xtset idpers year
    panel variable: idpers (strongly balanced)
    time variable: year, 1999 to 2014
    delta: 1 unit


    . xtologit influence i.active##c.votesyst swiss i.passive voted c.interest c.age c.income c.education c.stutzer##c.stutzer job* i.canton if insample==0 , vce(cluster canton)
    panels are not nested within clusters
    r(498);


    So the unit of analysis are individuals and the time variable are years. Why can't I cluster over cantons? Individuals are nested in cantons as far as I understand. Can anyone help?

  • #2
    do I have to set a different panel variable, or why is it not working? does no one know?

    Comment


    • #3
      Andres:
      please post via CODE delimiters (see the FAQ on this) not only what you typed (under -xtreg-, too), but also what Stata gave you back under -xtreg-. Thanks.
      Kind regards,
      Carlo
      (StataNow 18.5)

      Comment

      Working...
      X