Hi list members:

Is there any way to define neighbors in R as any other observation
with distance to the corresponding point equal to 0.

I am trying to define neighbors base on the same location ( the same
Household members are linked to each other). I tried defining

weights base on  fixed distance bounds:
neighbordistance.nb <- dnearneigh ( coords, d1=0, d2=0.00001, row.names=IDs
)
But this function does not define other Household members (distance=0) as
the neighbor.

When trying fixed number of neighbors:
neighbor3.knn <- knearneigh ( x=coords , k=3, longlat= FALSE, RANN=TRUE )
This function defines other Household members(distance =0) as neighbor but
the problem with this function is that each Household has different
Household number so different number of neighbors is required for each
Household.

It would be kind of you letting me know if there is a way to define
neighbors base on  zero distance with the corresponding point.
Appreciate it.

Roosbeh Nowrouzian
PhD student
Department of Civil Engineering
University of Florida

	[[alternative HTML version deleted]]

