-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skater spanning tree gwt format incorrect #1764
Comments
skater spanning tree weights properties incorrect GeoDaCenter#1765 skater spanning tree gwt format incorrect GeoDaCenter#1764 no id variable for gwt skater spanning tree GeoDaCenter#1763
GeoDa 1.12.1.181 (macOS Mojave, 10.14.1). Dec. 10 build. Fix verified. @lixun910 By clicking "Save Spanning Tree", GeoDa only saves "CL" (cluster) but not the number of neighbors. Is it an extra step to get the number of neighbors? |
@Ashitacarl I am not sure if I understand your question: |
@Ashitacarl Do you have any other question re this issue? By clicking "Save Spanning Tree", GeoDa will save the spanning tree as a GWT weights file. This weights file has the information of "the number of neighbors"; |
@lixun910 Sorry that I forgot to reply on the issue. I am just wondering how we can add the "number of neighbors" for each observation as a column in the table. |
@Ashitacarl
Got it. In Skater, GeoDa doesn’t save “number of neighbors” information in the table directly, since Skate spanning tree gwt file has this information. User can save the “number of neighbors” to table by using “Connectivity Histogram” and right click “Save Connectivity To Table”.
… On Jan 14, 2019, at 2:30 PM, Ashitacarl ***@***.***> wrote:
@lixun910 <https://github.com/lixun910> Sorry that I forgot to reply on the issue.
I am just wondering how we can add the "number of neighbors" for each observation as a column in the table.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1764 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACT8T1MWl9KTs6n_MIMwxmuhnR1j6-nEks5vDPb2gaJpZM4Y2rsu>.
|
@lixun910 Great! Thanks. |
The gwt weights file saved by "save spanning tree" in skater does not have the correct format. Apart from it not having an id variable in the header line (see #1763), it also is not symmetric. The link between any i and j is only recorded once, the symmetric link between j and i is not included.
This leads to strange results, such as the number of neighbors given as 0 whereas there always is at least one neighbor (by definition). For example, observation 5 gives 0 neighbors (last column)
but in fact it has one neighbor
in the gwt file, the connection between 4 and 5 is included, but the connection between 5 and 4 is not, hence the latter shows up as having no neighbors.
The text was updated successfully, but these errors were encountered: