I have tried to tabulate the cost variable over site_name_corrected, activity_group, input_cat and modality variables which are categorical but to no avail. These categorical variables are nested in the order they are listed here. My aim is to have a sort of table that will enable me to give the cost accrued according to the categorical variables in a nested order.
I will appreciate your assistance in this regard.
Thanks.
I will appreciate your assistance in this regard.
Thanks.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str54 site_name_corrected str1 activity_group long input_cat str5 modality float cost "Benue (Wailomayo and Wadata)Makurdi LGA" "a" 3 "mob" 534.18494 "Benue (Wailomayo and Wadata)Makurdi LGA" "a" 5 "mob" 30740.084 "Benue (Wailomayo and Wadata)Makurdi LGA" "b" 4 "mob" 226.36095 "Benue (Wailomayo and Wadata)Makurdi LGA" "b" 4 "mob" 7195.392 "Benue (Wailomayo and Wadata)Makurdi LGA" "b" 4 "mob" 684.6987 "Benue (Wailomayo and Wadata)Makurdi LGA" "b" 5 "mob" 148.9194 "Benue (Wailomayo and Wadata)Makurdi LGA" "b" 5 "mob" 116.94418 "Benue (Wailomayo and Wadata)Makurdi LGA" "b" 5 "mob" 62.62973 "Benue (Wailomayo and Wadata)Makurdi LGA" "b" 5 "mob" 617.4673 "Benue (Wailomayo and Wadata)Makurdi LGA" "c" 5 "mob" 211.65536 "Benue (Wailomayo and Wadata)Makurdi LGA" "c" 5 "mob" 151.69586 "Benue (Wailomayo and Wadata)Makurdi LGA" "c" 5 "mob" 163.0415 "Benue (Wailomayo and Wadata)Makurdi LGA" "c" 5 "mob" 31.035225 "Benue (Wailomayo and Wadata)Makurdi LGA" "d" 5 "mob" 7569.428 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 2 "mob" 401.5962 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 2 "mob" 1008.4618 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 2 "mob" 419.7809 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 3 "mob" 665.0686 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 3 "mob" 1068.7242 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 5 "mob" 97.20691 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 5 "mob" 96.86185 "Benue (Wailomayo and Wadata)Makurdi LGA" "f" 5 "mob" 342.0797 "Christian Center for Community Development (3CD)" "a" 3 "mob" 2.4610364 "Christian Center for Community Development (3CD)" "b" 4 "mob" 229.57846 "Christian Center for Community Development (3CD)" "b" 4 "mob" 987.4188 "Christian Center for Community Development (3CD)" "c" 4 "mob" 27.64631 "Christian Center for Community Development (3CD)" "d" 4 "mob" 180.85056 "Christian Center for Community Development (3CD)" "f" 3 "mob" 29.07365 "Christian Center for Community Development (3CD)" "f" 3 "mob" 36.96226 "Christian Center for Community Development (3CD)" "f" 3 "mob" 11.666605 "Christian Center for Community Development (3CD)" "f" 3 "mob" 20.820665 "Christian Center for Community Development (3CD)" "f" 3 "mob" 34.163006 "Christian Center for Community Development (3CD)" "f" 5 "mob" .7203329 "Christian Center for Community Development (3CD)" "f" 6 "mob" 24.38849 "Christian Center for Community Development (3CD)" "f" 8 "mob" 23.215944 "Christian Center for Community Development (3CD)" "f" 8 "mob" 36.9674 "Christian Center for Community Development (3CD)" "f" 8 "mob" 40.47759 "Christian Center for Community Development (3CD)" "g" 6 "mob" 5183.601 "Gboko KP One Stop Shop" "a" 2 "mob" 24.62743 "Gboko KP One Stop Shop" "b" 3 "mob" 44.8106 "Gboko KP One Stop Shop" "b" 6 "mob" 91.3336 "Gboko KP One Stop Shop" "c" 4 "mob" 13.794602 "Gboko KP One Stop Shop" "c" 4 "mob" 33.522423 "Gboko KP One Stop Shop" "c" 4 "mob" 54.86737 "Gboko KP One Stop Shop" "c" 4 "mob" 67.21999 "Gboko KP One Stop Shop" "c" 4 "mob" 93.87276 "Gboko KP One Stop Shop" "d" 6 "mob" 27.47283 "Gboko KP One Stop Shop" "e" 6 "mob" 97.95804 "Gboko KP One Stop Shop" "e" 6 "mob" 71.16052 "Gboko KP One Stop Shop" "g" 3 "mob" 39.56013 "Gboko KP One Stop Shop" "g" 4 "mob" 97.11669 "Gboko KP One Stop Shop" "g" 5 "mob" 59.73158 "Gboko KP One Stop Shop" "g" 5 "mob" 81.14655 "Gboko KP One Stop Shop" "g" 5 "mob" 12.396338 "Gboko KP One Stop Shop" "g" 5 "mob" 32.847313 "Gombe is Bakassi in Katungo LGA" "a" 4 "idx" 8.668825 "Gombe is Bakassi in Katungo LGA" "a" 4 "idx" 8.127492 "Gombe is Bakassi in Katungo LGA" "b" 4 "idx" 1194.3363 "Gombe is Bakassi in Katungo LGA" "b" 4 "idx" 2.989621 "Gombe is Bakassi in Katungo LGA" "b" 4 "idx" .4216937 "Gombe is Bakassi in Katungo LGA" "b" 4 "idx" 1515.767 "Gombe is Bakassi in Katungo LGA" "b" 4 "idx" .20389897 "Gombe is Bakassi in Katungo LGA" "e" 4 "idx" 64.56348 "Gombe is Bakassi in Katungo LGA" "e" 4 "idx" 21.898457 "Gombe is Bakassi in Katungo LGA" "e" 6 "idx" 21.517635 "Gombe is Bakassi in Katungo LGA" "f" 3 "idx" 29.03677 "Gombe is Bakassi in Katungo LGA" "f" 3 "idx" 6.296571 "Gwagwalada KP One Stop Shop" "b" 3 "link" 12.942368 "Gwagwalada KP One Stop Shop" "b" 4 "link" 343.5709 "Gwagwalada KP One Stop Shop" "b" 4 "link" 13.82327 "Gwagwalada KP One Stop Shop" "b" 4 "link" 3.6813405 "Gwagwalada KP One Stop Shop" "b" 4 "link" 21.84421 "Gwagwalada KP One Stop Shop" "c" 4 "link" .7983846 "Gwagwalada KP One Stop Shop" "c" 4 "link" 10.090512 "Gwagwalada KP One Stop Shop" "c" 5 "link" 59.57713 "Gwagwalada KP One Stop Shop" "e" 3 "link" 18.758984 "Gwagwalada KP One Stop Shop" "e" 4 "link" 49.15485 "Gwagwalada KP One Stop Shop" "e" 5 "link" 47.08419 "Gwagwalada KP One Stop Shop" "e" 5 "link" 10.93856 "Gwagwalada KP One Stop Shop" "e" 6 "link" 2.330999 "Gwagwalada KP One Stop Shop" "e" 6 "link" 12.867028 "Gwagwalada KP One Stop Shop" "f" 6 "link" 198.54863 "Gwagwalada KP One Stop Shop" "g" 3 "link" 226.14565 "Gwagwalada KP One Stop Shop" "g" 3 "link" 82.99586 "Gwagwalada KP One Stop Shop" "g" 3 "link" 28.313665 "Gwagwalada KP One Stop Shop" "g" 3 "link" 2.68613 "Gwagwalada KP One Stop Shop" "g" 4 "link" 13.254156 "Gwagwalada KP One Stop Shop" "g" 6 "link" 14.761385 "Initiative for Advancement of Humanity (IAH)" "b" 4 "link" 28775.047 "Initiative for Advancement of Humanity (IAH)" "b" 4 "link" 486.5101 "Initiative for Advancement of Humanity (IAH)" "g" 4 "link" 54.32331 "Lagos Community" "a" 2 "mob" 226.3217 "Lagos Community" "a" 2 "mob" 3978.153 "Lagos Community" "a" 2 "mob" 295.1708 "Lagos Community" "a" 8 "mob" 3941.369 "Lagos Community" "a" 8 "mob" 2436.417 "Lagos Community" "b" 4 "mob" 88.56134 "Lagos Community" "b" 4 "mob" 3.193607 "Lagos Community" "b" 4 "mob" 42.46684 "Lagos Community" "b" 4 "mob" 41.52208 end label values input_cat input_cat label def input_cat 2 "contracted_services", modify label def input_cat 3 "equipment", modify label def input_cat 4 "hts_supplies", modify label def input_cat 5 "other_supplies", modify label def input_cat 6 "personnel", modify label def input_cat 8 "transportation_not_training", modify
Comment