Announcement

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

  • Create a variable to find neighbor village area

    Hello, right now i'm willing to get a variable which identify if it's a neighbor of village area or no. That variable will help me to identify the probability of neighbor village to get Social Forestry Permit (SFP) if the main village got the SFP earlier than the neighbor.

    here is my data right now:

    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input long _ID double(_X _Y)
    1          .         .
    1 96.1294334 4.1346052
    1 96.1297253  4.134563
    1 96.1305557 4.1343265
    1 96.1309702  4.133935
    1 96.1309766 4.1339355
    1  96.131154 4.1339497
    1  96.131962 4.1340146
    1 96.1320243 4.1340225
    1 96.1321571 4.1340392
    1 96.1321591 4.1340395
    1 96.1321593 4.1340385
    1 96.1321599 4.1340338
    1 96.1322862 4.1331654
    1 96.1332381 4.1318512
    1 96.1329312 4.1312409
    1 96.1307994 4.1312057
    1 96.1299265 4.1304666
    1 96.1289636 4.1289852
    1 96.1291789 4.1284166
    1 96.1296961 4.1271915
    1 96.1291708 4.1263636
    1 96.1286879 4.1252298
    1 96.1280754 4.1243586
    1 96.1276396  4.124142
    1 96.1265097 4.1244522
    1 96.1263806 4.1248021
    1 96.1261663 4.1256329
    1 96.1260839 4.1268126
    1 96.1259565 4.1275994
    1  96.125917 4.1286042
    1  96.126311 4.1292578
    1 96.1265721 4.1297278
    1 96.1268678 4.1305102
    1 96.1267151 4.1309679
    1 96.1265706 4.1314173
    1 96.1265769  4.131421
    1 96.1272456 4.1318125
    1  96.127022 4.1331291
    1  96.126963 4.1335444
    1 96.1269477 4.1336515
    1 96.1264606 4.1349483
    1 96.1285193 4.1347374
    1 96.1294334 4.1346052
    2          .         .
    2  96.130306 4.1372325
    2 96.1303059 4.1372321
    2 96.1303062  4.137232
    2 96.1306073 4.1371442
    2 96.1306409 4.1371344
    2 96.1306481 4.1371323
    2 96.1308923 4.1370611
    2 96.1308935 4.1370625
    2 96.1308969 4.1370615
    2 96.1308955 4.1370597
    2 96.1306033 4.1366665
    2 96.1306385 4.1359761
    2 96.1304972 4.1353013
    2 96.1304881 4.1347584
    2 96.1307369 4.1345416
    2 96.1321571 4.1340392
    2 96.1320243 4.1340225
    2  96.131962 4.1340146
    2  96.131154 4.1339497
    2 96.1309766 4.1339355
    2 96.1309702  4.133935
    2 96.1305557 4.1343265
    2 96.1297253  4.134563
    2 96.1294334 4.1346052
    2  96.129177 4.1374324
    2 96.1291726 4.1374678
    2  96.129172 4.1374682
    2 96.1291719 4.1374693
    2 96.1291506 4.1374812
    2 96.1291154 4.1375027
    2  96.129172 4.1374726
    2  96.129175  4.137471
    2 96.1293881 4.1373577
    2 96.1294606 4.1373183
    2 96.1301589 4.1372715
    2  96.130306 4.1372325
    2          .         .
    2 96.1321599 4.1340338
    2 96.1321593 4.1340385
    2 96.1321701 4.1340346
    2 96.1321599 4.1340338
    3          .         .
    3 96.1438316 4.1453305
    3 96.1441908  4.145067
    3 96.1448946 4.1445656
    3 96.1449027 4.1445599
    3 96.1449033 4.1445594
    3  96.144904 4.1445587
    3   96.14564 4.1438576
    3 96.1456452 4.1438492
    3  96.145654 4.1438411
    3 96.1458066 4.1435863
    3 96.1459004 4.1434336
    3 96.1459685 4.1433318
    3 96.1461534 4.1430979
    end

    the data above is data of Indonesia village boundary.

    Ohya i have another dataset with ID of villages and the specific Social Forestry variabel (1 if the village has permit, and zero if it's not)

    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input str11 IDDESA str34 DESA float hutsos
    "1101010001" "LATIUNG"         0
    "1101010002" "LABUHAN BAJAU"   0
    "1101010003" "SUAK LAMATAN"    0
    "1101010004" "ANA AO"          0
    "1101010005" "LATALING"        0
    "1101010006" "PULAU BENGKALAK" 0
    "1101010007" "BADEGONG"        0
    "1101010008" "KEBUN BARU"      0
    "1101010009" "ULUL MAYANG"     0
    "1101010010" "PASIR TINGGI"    0
    "1101010011" "LABUHAN JAYA"    0
    "1101010012" "LABUHAN BAKTI"   0
    "1101010013" "BATU RALANG"     0
    "1101010014" "ALUS ALUS"       0
    "1101010015" "SEUNEUBOK"       0
    "1101010016" "BLANG SEBEL"     0
    "1101010017" "TRANS BARU"      0
    "1101010018" "TRANS MERANTI"   0
    "1101010019" "TRANS JERNGE"    0
    "1101010999" "AREA PDKS"       0
    "1101020022" "AIR PINANG"      0
    "1101020023" "KUALA MAKMUR"    0
    "1101020024" "GANTING"         0
    "1101020025" "LINGGI"          0
    "1101020026" "LUGU"            0
    "1101020027" "SINABANG"        0
    "1101020028" "SUKA MAJU"       0
    "1101020029" "SUKA KARYA"      0
    "1101020030" "SUKA JAYA"       0
    "1101020031" "AIR DINGIN"      0
    end
    For the effort, i already try using GEODIST syntax and it can't solve anything (or because i can't use it)

    I need your help, thank you in advance!
Working...
X