Closed tra6sdc closed 5 months ago
Can you please provide fully reproducible code example we can run?
Thanks, if you look back to issue #215 you should find the .csv, the .gal file and the code.
@tra6sdc Thank you for reporting the issue. I was trying to use the files you uploaded to replicate the discrepancy. However, the result I got for your last polygon aligns with your manual calculation. Could you please rerun your program?
BTW, there is no need to specify the values of k
and m
with the discrete input values. Please refer to the giddy documentation for more information and examples (Example (4)).
Yes, thank you so much for taking the time to look into this issue. Yes, I was using a different version of my input files. All is OK now. Sorry to have wasted your time.
Hello,
I now understand that in the case of ties for the spatial lag a random number is used to break the tie. To explore this issue more I am looking at the lclass_ids attribute. I get these outputs:
However if for my final polygon, # 7264, I manually identify the rank of spatial lags (minus 1) for this polygon's neighbours I get these lags:
which for the final row of lclass_ids my calculation is
and not