Good afternoon,
I have a dataset that includes four variables tract1 tract2 change1 change2.
Variable Definitions:
Tract1 refers to each base census tract.
Tract2 refers to all census tracts that Tract1 is touching.
Change1 refers to if the binary change has occurred in tract1.
Change 2 refers to if the binary change has occurred in tract2
The structure of the database is trying to identify geographic chains of variables that have undergone a change.
For a visual understanding, I produced a small chart that represents census tracts.
In that table, F1 would identify as 1 (a grouping of one tract changing), A4 and A5 would identify as 2, and D4 D5 E3 E4 E5 and F3 would identify as 6.
Below is a subset of the dataset.
For example in the dataset: tract1 G0100210060700 touches G0100010020900 G0100010021000 G0100210060101 and G0100210060200.
Tract1 G0100210060700 did not undergo any change and out of the four neighboring tracts, only G0100210060101 experienced that change.
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
Best,
Damon
I have a dataset that includes four variables tract1 tract2 change1 change2.
Variable Definitions:
Tract1 refers to each base census tract.
Tract2 refers to all census tracts that Tract1 is touching.
Change1 refers to if the binary change has occurred in tract1.
Change 2 refers to if the binary change has occurred in tract2
The structure of the database is trying to identify geographic chains of variables that have undergone a change.
For a visual understanding, I produced a small chart that represents census tracts.
0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 1 | 1 |
1 | 0 | 0 | 1 | 1 | 0 |
1 | 0 | 0 | 1 | 1 | 0 |
In that table, F1 would identify as 1 (a grouping of one tract changing), A4 and A5 would identify as 2, and D4 D5 E3 E4 E5 and F3 would identify as 6.
Below is a subset of the dataset.
For example in the dataset: tract1 G0100210060700 touches G0100010020900 G0100010021000 G0100210060101 and G0100210060200.
Tract1 G0100210060700 did not undergo any change and out of the four neighboring tracts, only G0100210060101 experienced that change.
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str14(tract1 tract2) float(change1 change2) "G0100210060700" "G0100010020900" 0 0 "G0100210060600" "G0100010021000" 0 0 "G0100210060700" "G0100010021000" 0 0 "G0100210060500" "G0100010021000" 0 0 "G0100070010003" "G0100070010001" 0 0 "G0100070010004" "G0100070010001" 1 0 "G0100070010002" "G0100070010001" 0 0 "G0100730014203" "G0100070010002" 1 0 "G0100070010003" "G0100070010002" 0 0 "G0101170030334" "G0100070010002" 1 0 "G0100070010001" "G0100070010002" 0 0 "G0100070010001" "G0100070010003" 0 0 "G0100210060500" "G0100070010003" 0 0 "G0101170030405" "G0100070010003" 1 0 "G0100070010004" "G0100070010003" 1 0 "G0101170030334" "G0100070010003" 1 0 "G0101170030408" "G0100070010003" 1 0 "G0100210060402" "G0100070010003" 1 0 "G0100070010002" "G0100070010003" 0 0 "G0100070010003" "G0100070010004" 0 1 "G0100070010001" "G0100070010004" 0 1 "G0100090050102" "G0100090050101" 1 1 "G0100090050700" "G0100090050101" 0 1 "G0101150040402" "G0100090050101" 0 1 "G0101150040501" "G0100090050101" 0 1 "G0100090050700" "G0100090050102" 0 1 "G0101150040402" "G0100090050102" 0 1 "G0100090050101" "G0100090050102" 1 1 "G0100090050300" "G0100090050102" 1 1 "G0100090050200" "G0100090050102" 1 1 "G0100090050500" "G0100090050200" 0 1 "G0100090050300" "G0100090050200" 1 1 "G0100090050102" "G0100090050200" 1 1 "G0100090050400" "G0100090050200" 0 1 "G0100090050700" "G0100090050200" 0 1 "G0100090050500" "G0100090050300" 0 1 "G0100090050200" "G0100090050300" 1 1 "G0100090050400" "G0100090050300" 0 1 "G0100090050102" "G0100090050300" 1 1 "G0100090050200" "G0100090050400" 1 0 "G0100090050500" "G0100090050400" 0 0 "G0100090050300" "G0100090050400" 1 0 "G0100090050400" "G0100090050500" 0 0 "G0100090050700" "G0100090050500" 0 0 "G0100090050602" "G0100090050500" 0 0 "G0100090050300" "G0100090050500" 1 0 "G0100090050200" "G0100090050500" 1 0 "G0100730011400" "G0100090050601" 0 0 "G0100090050602" "G0100090050601" 0 0 "G0101270021900" "G0100090050601" 0 0 "G0100090050500" "G0100090050602" 0 0 "G0100730011400" "G0100090050602" 0 0 "G0100730011302" "G0100090050602" 0 0 "G0100090050601" "G0100090050602" 0 0 "G0100730011301" "G0100090050602" 1 0 "G0100090050700" "G0100090050602" 0 0 "G0100730011206" "G0100090050700" 0 0 "G0100090050500" "G0100090050700" 0 0 "G0100090050602" "G0100090050700" 0 0 "G0100730011110" "G0100090050700" 0 0 "G0100090050101" "G0100090050700" 1 0 "G0100090050200" "G0100090050700" 1 0 "G0100090050102" "G0100090050700" 1 0 "G0101150040501" "G0100090050700" 0 0 "G0100730011301" "G0100090050700" 1 0 "G0101150040300" "G0100150002600" 0 0 "G0101150040401" "G0100150002600" 0 0 "G0100210060102" "G0100210060101" 1 1 "G0100210060600" "G0100210060101" 0 1 "G0100210060200" "G0100210060101" 0 1 "G0100210060700" "G0100210060101" 0 1 "G0100210060101" "G0100210060102" 1 1 "G0100210060200" "G0100210060102" 0 1 "G0100210060600" "G0100210060102" 0 1 "G0100210060401" "G0100210060102" 0 1 "G0100210060300" "G0100210060102" 0 1 "G0100210060401" "G0100210060200" 0 0 "G0100210060700" "G0100210060200" 0 0 "G0100210060101" "G0100210060200" 1 0 "G0100210060300" "G0100210060200" 0 0 "G0100210060102" "G0100210060200" 1 0 "G0100210060102" "G0100210060300" 1 0 "G0100210060401" "G0100210060300" 0 0 "G0101170030704" "G0100210060300" 0 0 "G0100210060402" "G0100210060300" 1 0 "G0101170030502" "G0100210060300" 0 0 "G0100210060200" "G0100210060300" 0 0 "G0100210060102" "G0100210060401" 1 0 "G0100210060200" "G0100210060401" 0 0 "G0100210060402" "G0100210060401" 1 0 "G0100210060600" "G0100210060401" 0 0 "G0100210060500" "G0100210060401" 0 0 "G0100210060300" "G0100210060401" 0 0 "G0100070010003" "G0100210060402" 0 1 "G0100210060300" "G0100210060402" 0 1 "G0101170030502" "G0100210060402" 0 1 "G0101170030501" "G0100210060402" 0 1 "G0100210060500" "G0100210060402" 0 1 "G0100210060401" "G0100210060402" 0 1 "G0101170030405" "G0100210060402" 1 1 end
Best,
Damon
Comment