I would like to know the code to know the number of individuals (each individuak is identified by the number "pidp") that answer "mentioned" in the question represented by the variable "unsafe11" and also anser "mentioned" in the question represented by the variable "resunsafe2_11".
I send an example of the dataset below.
Thank you very much
I send an example of the dataset below.
Thank you very much
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long(pidp hidp psu) byte(unsafe1 resunsafe1_11 resunsafe2_11 resunsafe3_11 resunsafe4_11 resunsafe5_11 resunsafe6_11) 68513407 71114404 2996 0 0 0 0 0 0 0 69394015 75595604 7105 0 0 0 0 0 0 0 69406247 75629604 7123 0 0 0 0 0 0 0 69451131 75711204 7190 0 0 0 0 0 0 0 69854367 76098804 7792 0 0 0 0 0 1 0 136376727 138264404 2724 0 0 0 0 0 0 0 136591607 139468004 3156 0 0 0 0 0 0 0 136591615 139468004 3156 0 0 0 0 0 0 0 137389927 143949204 8919 1 0 0 0 0 0 0 137436167 143996804 8987 0 0 0 0 0 0 0 137779567 144350404 9495 0 0 0 0 0 0 0 204068691 204462404 2140 0 0 0 1 0 0 0 204595687 207454404 3172 0 0 0 1 0 0 0 204595691 207454404 3172 0 0 0 1 0 0 0 205007775 209712004 3988 0 0 0 0 0 0 0 205420535 211724804 10962 0 1 0 0 0 0 0 205604807 211949204 11244 0 0 0 0 0 0 0 205786367 212119204 11461 0 0 0 0 0 0 0 205958407 212398004 11723 0 0 0 0 0 0 0 206224967 212554404 12119 0 0 0 0 0 0 0 272165931 272979204 2327 0 0 0 0 0 0 0 340061887 340360404 2127 0 0 0 0 0 0 0 340434527 342550004 2847 0 0 0 0 0 0 0 341325331 347330404 4599 0 0 0 0 0 0 0 341419847 347514004 14121 0 0 0 0 0 0 0 341537487 347629604 14294 0 0 0 0 0 0 0 341691167 347888004 14522 0 0 0 0 0 0 0 341764607 347949204 14630 0 0 0 1 0 0 0 342008727 348214404 15006 0 0 1 0 0 1 0 342014847 348228004 15015 0 1 1 0 0 0 0 342222247 348357204 15274 0 0 0 0 0 0 0 342222251 348357204 15274 0 0 0 0 0 0 1 342222259 348357204 15274 0 0 0 0 0 0 0 408041487 408292404 2095 0 0 0 0 0 0 0 408205367 409251204 2407 0 0 0 0 0 0 0 409638807 415854004 16094 0 0 0 0 0 0 0 409653091 415874404 16115 0 0 0 0 0 0 0 409693207 415922004 16174 0 0 0 1 0 0 0 409733327 415996804 16235 0 0 0 0 0 0 0 409779571 416030804 16303 0 0 0 0 0 0 0 409847567 416132804 16403 0 0 0 0 0 0 0 409897211 416200804 16476 0 0 0 0 0 0 0 410126371 416493204 16834 0 0 0 0 0 0 0 410131127 416500004 16841 0 0 0 0 0 0 0 410230407 416568004 16987 0 0 0 0 0 0 0 476000691 476006804 2010 0 0 0 0 0 0 0 478404487 484275604 18940 0 0 0 1 0 0 0 545284531 551337204 4498 0 0 0 0 0 0 0 545532047 551854004 19529 0 0 0 0 0 0 0 545532055 551854004 19529 0 0 0 0 0 0 0 545781607 551996804 19851 0 0 0 0 0 0 0 546314047 552595204 20661 0 0 0 0 0 0 0 546524847 552690404 20974 0 0 0 1 0 0 1 546761499 552942004 21324 0 0 0 0 0 0 1 546766931 552962404 21332 0 0 0 0 0 0 0 612193131 613292004 2378 0 0 0 0 0 0 0 612621527 616059604 3218 0 -1 -1 -1 -1 -1 -1 612677971 616433604 3338 0 0 0 0 0 1 0 613438887 620194004 21493 0 0 0 0 0 0 0 613518455 620234804 21610 0 0 0 0 0 0 0 613783651 620479604 22003 0 1 1 0 0 0 0 613806087 620520404 22036 0 0 0 0 0 0 0 614375931 620982804 22886 0 0 0 0 0 0 0 680330491 681917604 2637 0 0 0 0 0 0 0 680954047 685202004 3933 0 0 0 0 0 0 0 680962211 685276804 3957 0 0 0 0 0 0 0 681007099 685542004 4053 0 0 0 0 0 0 0 681551087 687554804 23449 0 0 0 0 0 0 0 681585767 687561604 23500 0 0 0 0 0 1 0 681717687 687772404 23699 0 0 0 0 0 0 0 681717691 687772404 23699 0 0 0 1 0 0 0 681792487 687847204 23809 0 1 0 0 0 0 0 748594327 751481604 3133 0 0 0 0 0 0 0 749419847 755656804 24858 0 0 0 1 0 0 0 750244007 756336804 26180 0 0 0 0 0 0 0 750505807 756534004 26569 0 0 0 0 0 0 0 817670087 824071604 27171 0 0 0 0 0 0 0 817992411 824642804 27600 0 0 0 0 0 0 0 884224415 885197484 2446 0 0 0 0 0 0 0 884536527 886896804 3046 0 0 0 0 0 0 0 884616767 887325204 3214 0 0 0 0 0 0 0 885250527 890582404 4510 0 0 0 0 0 0 0 885392651 891051604 28589 0 0 0 0 0 0 0 885861167 891650004 51325 0 0 0 0 0 0 0 886011447 891826804 29468 0 0 0 0 0 0 0 886012127 891833604 29469 0 0 0 0 0 0 0 886305207 892166804 29906 0 0 0 0 0 0 0 886346691 892200804 29976 0 0 0 0 0 0 0 886428967 892289204 30103 0 0 0 0 0 0 0 886558847 892384404 50120 0 0 0 0 0 0 0 952242767 953455204 2502 0 0 0 0 0 0 0 953100931 958018004 4134 0 0 0 0 0 0 0 953649019 959643204 30609 0 0 0 0 0 0 1 953905367 959962804 30999 0 0 0 1 0 0 1 954174651 960377604 31425 0 0 0 0 0 0 0 954463647 960608804 31911 0 1 0 1 0 0 1 1022476567 1028574804 33615 0 0 0 0 0 0 0 1089592567 1095439204 34368 0 0 0 0 0 0 0 1089592571 1095439204 34368 0 0 0 0 0 0 0 1089644247 1095507204 34444 0 1 1 0 0 0 0 end label values psu c_psu label values unsafe1 c_unsafe1 label def c_unsafe1 0 "not mentioned", modify label def c_unsafe1 1 "Mentioned", modify label values resunsafe1_11 c_resunsafe1_11 label def c_resunsafe1_11 -1 "don't know", modify label def c_resunsafe1_11 0 "not mentioned", modify label def c_resunsafe1_11 1 "mentioned", modify label values resunsafe2_11 c_resunsafe2_11 label def c_resunsafe2_11 -1 "don't know", modify label def c_resunsafe2_11 0 "not mentioned", modify label def c_resunsafe2_11 1 "mentioned", modify label values resunsafe3_11 c_resunsafe3_11 label def c_resunsafe3_11 -1 "don't know", modify label def c_resunsafe3_11 0 "not mentioned", modify label def c_resunsafe3_11 1 "mentioned", modify label values resunsafe4_11 c_resunsafe4_11 label def c_resunsafe4_11 -1 "don't know", modify label def c_resunsafe4_11 0 "not mentioned", modify label values resunsafe5_11 c_resunsafe5_11 label def c_resunsafe5_11 -1 "don't know", modify label def c_resunsafe5_11 0 "not mentioned", modify label def c_resunsafe5_11 1 "mentioned", modify label values resunsafe6_11 c_resunsafe6_11 label def c_resunsafe6_11 -1 "don't know", modify label def c_resunsafe6_11 0 "not mentioned", modify label def c_resunsafe6_11 1 "mentioned", modify

Comment