Announcement

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

  • Add fixed effect to multiway clustering logit regression

    Hello, i am trying to add "Cluster" fixed effect, an indicator of which cluster people are in, to a logit regression model estimating network tie formation. I use the clus_nway package to perform multiway clustering. When I add i.cluster_id to the model, the model returns an error "parentheses unbalanced" error. How should I specify the model instead to include the cluster fixed effect? Thanks!

    My syntax:
    Code:
    clus_nway logit DV var1 var2 var3 i.cluster_id, cluster(id_ego id_alter)
    Here is the variable "cluster_id"
    Click image for larger version

Name:	Screen Shot 2023-01-21 at 12.42.21 PM.png
Views:	1
Size:	54.6 KB
ID:	1698122


  • #2
    Yixi:
    the last part of your code should be written as:
    Code:
    vce(cluster clus1 clus2)
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X