Announcement

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

  • Spatial weighting matrix for panel data

    I used -spmatrix create command to create weighting matrix but when I created idistance, no matter I change the vtruncate(1/180) or vtruncate(1/350) the output matrix result is the same.

    Command I used:

    spmatrix create idistance W180 if year==2021, vtruncate(1/180) norm(row)replace

    spmatrix create idistance W350 if year==2021, vtruncate(1/350) norm(row)replace

    Please help me to solve that problem

  • #2
    Cross-posted https://stackoverflow.com/questions/...atrix-by-stata

    Comment

    Working...
    X