LSMS_Library 0.2.9.dev0__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (973) hide show
  1. lsms_library/ISSUES.md +9 -0
  2. lsms_library/Makefile +43 -4
  3. lsms_library/__init__.py +180 -2
  4. lsms_library/categorical_mapping/ai_agent.py +14 -1
  5. lsms_library/categorical_mapping/categorical_mapping_helper.py +19 -0
  6. lsms_library/categorical_mapping/kinship.yml +574 -0
  7. lsms_library/cli.py +647 -0
  8. lsms_library/config.py +120 -0
  9. lsms_library/countries/.dvc/config +1 -1
  10. lsms_library/countries/.dvcignore +7 -0
  11. lsms_library/countries/Afghanistan/_/Makefile +10 -14
  12. lsms_library/countries/Afghanistan/_/afghanistan.py +1 -1
  13. lsms_library/countries/Albania/2002/_/data_info.yml +55 -0
  14. lsms_library/countries/Albania/2002/_/sample.py +21 -0
  15. lsms_library/countries/Albania/2003/_/data_info.yml +54 -0
  16. lsms_library/countries/Albania/2003/_/sample.py +27 -0
  17. lsms_library/countries/Albania/2004/_/data_info.yml +50 -0
  18. lsms_library/countries/Albania/2004/_/sample.py +33 -0
  19. lsms_library/countries/Albania/2005/_/data_info.yml +56 -0
  20. lsms_library/countries/Albania/2005/_/sample.py +32 -0
  21. lsms_library/countries/Albania/2008/_/data_info.yml +47 -0
  22. lsms_library/countries/Albania/2008/_/sample.py +30 -0
  23. lsms_library/countries/Albania/2012/_/data_info.yml +47 -0
  24. lsms_library/countries/Albania/2012/_/sample.py +30 -0
  25. lsms_library/countries/Albania/_/data_scheme.yml +35 -0
  26. lsms_library/countries/Armenia/1996/_/data_info.yml +27 -0
  27. lsms_library/countries/Armenia/_/data_scheme.yml +18 -0
  28. lsms_library/countries/Azerbaijan/1995/Documentation/.gitignore +6 -0
  29. lsms_library/countries/Azerbaijan/1995/Documentation/abstracte.pdf.dvc +5 -0
  30. lsms_library/countries/Azerbaijan/1995/Documentation/abstractr.pdf.dvc +5 -0
  31. lsms_library/countries/Azerbaijan/1995/Documentation/ppabse.pdf.dvc +5 -0
  32. lsms_library/countries/Azerbaijan/1995/Documentation/ppabsr.pdf.dvc +5 -0
  33. lsms_library/countries/Azerbaijan/1995/Documentation/queshhe.pdf.dvc +5 -0
  34. lsms_library/countries/Azerbaijan/1995/Documentation/quespope.pdf.dvc +5 -0
  35. lsms_library/countries/Azerbaijan/1995/_/1995.py +7 -0
  36. lsms_library/countries/Azerbaijan/1995/_/data_info.yml +69 -0
  37. lsms_library/countries/Azerbaijan/_/data_scheme.yml +35 -0
  38. lsms_library/countries/Benin/2018-19/_/2018-19.py +60 -0
  39. lsms_library/countries/Benin/2018-19/_/data_info.yml +220 -0
  40. lsms_library/countries/Benin/_/benin.py +10 -0
  41. lsms_library/countries/Benin/_/data_scheme.yml +59 -0
  42. lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbh_ind_weighs.dta.dvc +5 -0
  43. lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhcfhh.dta.dvc +5 -0
  44. lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhcfind.dta.dvc +5 -0
  45. lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhhhpos.dta.dvc +5 -0
  46. lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhihh.dta.dvc +5 -0
  47. lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhiind.dta.dvc +5 -0
  48. lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhjhist.dta.dvc +5 -0
  49. lsms_library/countries/Bulgaria/1995/Documentation/.gitignore +1 -0
  50. lsms_library/countries/Bulgaria/1995/Documentation/BG95SUM.LOG.dvc +5 -0
  51. lsms_library/countries/Burkina_Faso/2014/_/2014.py +7 -0
  52. lsms_library/countries/Burkina_Faso/2014/_/data_info.yml +170 -0
  53. lsms_library/countries/Burkina_Faso/2014/_/food_acquired.py +2 -2
  54. lsms_library/countries/Burkina_Faso/2018-19/_/2018-19.py +58 -0
  55. lsms_library/countries/Burkina_Faso/2018-19/_/data_info.yml +213 -0
  56. lsms_library/countries/Burkina_Faso/2018-19/_/food_acquired.py +1 -1
  57. lsms_library/countries/Burkina_Faso/2021-22/_/2021-22.py +58 -0
  58. lsms_library/countries/Burkina_Faso/2021-22/_/data_info.yml +197 -0
  59. lsms_library/countries/Burkina_Faso/2021-22/_/food_acquired.py +1 -1
  60. lsms_library/countries/Burkina_Faso/_/CONTENTS.org +26 -4
  61. lsms_library/countries/Burkina_Faso/_/Makefile +15 -17
  62. lsms_library/countries/Burkina_Faso/_/burkina_faso.py +20 -1
  63. lsms_library/countries/Burkina_Faso/_/categorical_mapping.org +401 -0
  64. lsms_library/countries/Burkina_Faso/_/data_scheme.yml +75 -0
  65. lsms_library/countries/Burkina_Faso/_/food_acquired.py +1 -6
  66. lsms_library/countries/Burkina_Faso/_/panel_ids.json +1 -0
  67. lsms_library/countries/Burkina_Faso/_/panel_ids.py +96 -0
  68. lsms_library/countries/Burkina_Faso/_/updated_ids.json +1 -0
  69. lsms_library/countries/Cambodia/2019-20/_/data_info.yml +60 -0
  70. lsms_library/countries/Cambodia/2019-20/_/food_acquired.py +1 -1
  71. lsms_library/countries/Cambodia/_/CONTENTS.org +128 -3
  72. lsms_library/countries/Cambodia/_/Makefile +12 -17
  73. lsms_library/countries/Cambodia/_/cambodia.py +1 -1
  74. lsms_library/countries/Cambodia/_/data_scheme.yml +24 -0
  75. lsms_library/countries/Cambodia/_/food_acquired.py +1 -6
  76. lsms_library/countries/China/1995-97/_/1995-97.py +30 -0
  77. lsms_library/countries/China/1995-97/_/data_info.yml +50 -0
  78. lsms_library/countries/China/_/CONTENTS.org +53 -0
  79. lsms_library/countries/China/_/data_scheme.yml +34 -0
  80. lsms_library/countries/CotedIvoire/1985-86/_/data_info.yml +88 -0
  81. lsms_library/countries/CotedIvoire/1986-87/_/data_info.yml +88 -0
  82. lsms_library/countries/CotedIvoire/1987-88/_/data_info.yml +88 -0
  83. lsms_library/countries/CotedIvoire/1988-89/_/data_info.yml +88 -0
  84. lsms_library/countries/CotedIvoire/2018-19/_/data_info.yml +221 -0
  85. lsms_library/countries/CotedIvoire/2018-19/_/food_expenditures.py +1 -1
  86. lsms_library/countries/CotedIvoire/2018-19/_/nonfood_expenditures.py +1 -1
  87. lsms_library/countries/CotedIvoire/_/CONTENTS.org +130 -0
  88. lsms_library/countries/CotedIvoire/_/Makefile +12 -16
  89. lsms_library/countries/CotedIvoire/_/cotedivoire.py +80 -81
  90. lsms_library/countries/CotedIvoire/_/data_scheme.yml +64 -0
  91. lsms_library/countries/Ethiopia/2011-12/_/data_info.yml +124 -0
  92. lsms_library/countries/Ethiopia/2011-12/_/sample.py +49 -0
  93. lsms_library/countries/Ethiopia/2011-12/_/shocks.py +8 -8
  94. lsms_library/countries/Ethiopia/2013-14/_/data_info.yml +134 -0
  95. lsms_library/countries/Ethiopia/2013-14/_/sample.py +52 -0
  96. lsms_library/countries/Ethiopia/2013-14/_/shocks.py +8 -8
  97. lsms_library/countries/Ethiopia/2015-16/Documentation/SOURCE.org +3 -0
  98. lsms_library/countries/Ethiopia/2015-16/_/data_info.yml +137 -0
  99. lsms_library/countries/Ethiopia/2015-16/_/sample.py +52 -0
  100. lsms_library/countries/Ethiopia/2015-16/_/shocks.py +8 -8
  101. lsms_library/countries/Ethiopia/2018-19/_/data_info.yml +148 -0
  102. lsms_library/countries/Ethiopia/2018-19/_/sample.py +45 -0
  103. lsms_library/countries/Ethiopia/2018-19/_/shocks.py +8 -8
  104. lsms_library/countries/Ethiopia/2021-22/Data/cons_agg_w5.dta.dvc +5 -0
  105. lsms_library/countries/Ethiopia/2021-22/Data/crop_cf_wave5.dta.dvc +5 -0
  106. lsms_library/countries/Ethiopia/2021-22/Data/eth_householdgeovariables_y5.dta.dvc +5 -0
  107. lsms_library/countries/Ethiopia/2021-22/Data/eth_plotgeovariables_y5.dta.dvc +5 -0
  108. lsms_library/countries/Ethiopia/2021-22/Data/food_cf_wave5.dta.dvc +5 -0
  109. lsms_library/countries/Ethiopia/2021-22/Data/sect01a_com_w5.dta.dvc +5 -0
  110. lsms_library/countries/Ethiopia/2021-22/Data/sect01b_com_w5.dta.dvc +5 -0
  111. lsms_library/countries/Ethiopia/2021-22/Data/sect02_com_w5.dta.dvc +5 -0
  112. lsms_library/countries/Ethiopia/2021-22/Data/sect03_com_w5.dta.dvc +5 -0
  113. lsms_library/countries/Ethiopia/2021-22/Data/sect04_com_w5.dta.dvc +5 -0
  114. lsms_library/countries/Ethiopia/2021-22/Data/sect05_com_w5.dta.dvc +5 -0
  115. lsms_library/countries/Ethiopia/2021-22/Data/sect06_com_w5.dta.dvc +5 -0
  116. lsms_library/countries/Ethiopia/2021-22/Data/sect07_com_w5.dta.dvc +5 -0
  117. lsms_library/countries/Ethiopia/2021-22/Data/sect08_com_w5.dta.dvc +5 -0
  118. lsms_library/countries/Ethiopia/2021-22/Data/sect09_com_w5.dta.dvc +5 -0
  119. lsms_library/countries/Ethiopia/2021-22/Data/sect10_ph_w5.dta.dvc +5 -0
  120. lsms_library/countries/Ethiopia/2021-22/Data/sect10a_com_w5.dta.dvc +5 -0
  121. lsms_library/countries/Ethiopia/2021-22/Data/sect10a_hh_w5.dta.dvc +5 -0
  122. lsms_library/countries/Ethiopia/2021-22/Data/sect10b_com_w5.dta.dvc +5 -0
  123. lsms_library/countries/Ethiopia/2021-22/Data/sect11_com_w5.dta.dvc +5 -0
  124. lsms_library/countries/Ethiopia/2021-22/Data/sect11_hh_w5.dta.dvc +5 -0
  125. lsms_library/countries/Ethiopia/2021-22/Data/sect11_ph_w5.dta.dvc +5 -0
  126. lsms_library/countries/Ethiopia/2021-22/Data/sect12_com_w5.dta.dvc +5 -0
  127. lsms_library/countries/Ethiopia/2021-22/Data/sect12a_hh_w5.dta.dvc +5 -0
  128. lsms_library/countries/Ethiopia/2021-22/Data/sect12b1_hh_w5.dta.dvc +5 -0
  129. lsms_library/countries/Ethiopia/2021-22/Data/sect12b2_hh_w5.dta.dvc +5 -0
  130. lsms_library/countries/Ethiopia/2021-22/Data/sect12c_hh_w5.dta.dvc +5 -0
  131. lsms_library/countries/Ethiopia/2021-22/Data/sect12c_q1_hh_w5.dta.dvc +5 -0
  132. lsms_library/countries/Ethiopia/2021-22/Data/sect12d_hh_w5.dta.dvc +5 -0
  133. lsms_library/countries/Ethiopia/2021-22/Data/sect12e_hh_w5.dta.dvc +5 -0
  134. lsms_library/countries/Ethiopia/2021-22/Data/sect12f_hh_w5.dta.dvc +5 -0
  135. lsms_library/countries/Ethiopia/2021-22/Data/sect13_hh_w5.dta.dvc +5 -0
  136. lsms_library/countries/Ethiopia/2021-22/Data/sect14_hh_w5.dta.dvc +5 -0
  137. lsms_library/countries/Ethiopia/2021-22/Data/sect15a_hh_w5.dta.dvc +5 -0
  138. lsms_library/countries/Ethiopia/2021-22/Data/sect15b_hh_w5.dta.dvc +5 -0
  139. lsms_library/countries/Ethiopia/2021-22/Data/sect1_hh_w5.dta.dvc +5 -0
  140. lsms_library/countries/Ethiopia/2021-22/Data/sect1_ph_w5.dta.dvc +5 -0
  141. lsms_library/countries/Ethiopia/2021-22/Data/sect1_pp_w5.dta.dvc +5 -0
  142. lsms_library/countries/Ethiopia/2021-22/Data/sect2_hh_w5.dta.dvc +5 -0
  143. lsms_library/countries/Ethiopia/2021-22/Data/sect2_pp_w5.dta.dvc +5 -0
  144. lsms_library/countries/Ethiopia/2021-22/Data/sect3_hh_w5.dta.dvc +5 -0
  145. lsms_library/countries/Ethiopia/2021-22/Data/sect3_pp_w5.dta.dvc +5 -0
  146. lsms_library/countries/Ethiopia/2021-22/Data/sect3b_hh_w5.dta.dvc +5 -0
  147. lsms_library/countries/Ethiopia/2021-22/Data/sect4_hh_w5.dta.dvc +5 -0
  148. lsms_library/countries/Ethiopia/2021-22/Data/sect4_pp_w5.dta.dvc +5 -0
  149. lsms_library/countries/Ethiopia/2021-22/Data/sect5_pp_w5.dta.dvc +5 -0
  150. lsms_library/countries/Ethiopia/2021-22/Data/sect5a_hh_w5.dta.dvc +5 -0
  151. lsms_library/countries/Ethiopia/2021-22/Data/sect5b_hh_w5.dta.dvc +5 -0
  152. lsms_library/countries/Ethiopia/2021-22/Data/sect6a_hh_w5.dta.dvc +5 -0
  153. lsms_library/countries/Ethiopia/2021-22/Data/sect6b2_hh_w5.dta.dvc +5 -0
  154. lsms_library/countries/Ethiopia/2021-22/Data/sect6b3_hh_w5.dta.dvc +5 -0
  155. lsms_library/countries/Ethiopia/2021-22/Data/sect6b4_hh_w5.dta.dvc +5 -0
  156. lsms_library/countries/Ethiopia/2021-22/Data/sect6c_hh_w5.dta.dvc +5 -0
  157. lsms_library/countries/Ethiopia/2021-22/Data/sect7_pp_w5.dta.dvc +5 -0
  158. lsms_library/countries/Ethiopia/2021-22/Data/sect7a_hh_w5.dta.dvc +5 -0
  159. lsms_library/countries/Ethiopia/2021-22/Data/sect7b_hh_w5.dta.dvc +5 -0
  160. lsms_library/countries/Ethiopia/2021-22/Data/sect8_1_ls_w5.dta.dvc +5 -0
  161. lsms_library/countries/Ethiopia/2021-22/Data/sect8_2_ls_w5.dta.dvc +5 -0
  162. lsms_library/countries/Ethiopia/2021-22/Data/sect8_3_ls_w5.dta.dvc +5 -0
  163. lsms_library/countries/Ethiopia/2021-22/Data/sect8_4_ls_w5.dta.dvc +5 -0
  164. lsms_library/countries/Ethiopia/2021-22/Data/sect8_hh_w5.dta.dvc +5 -0
  165. lsms_library/countries/Ethiopia/2021-22/Data/sect9_hh_w5.dta.dvc +5 -0
  166. lsms_library/countries/Ethiopia/2021-22/Data/sect9_ph_w5.dta.dvc +5 -0
  167. lsms_library/countries/Ethiopia/2021-22/Data/sect9a_pp_w5.dta.dvc +5 -0
  168. lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_hh_w5.dta.dvc +5 -0
  169. lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_ls_w5.dta.dvc +5 -0
  170. lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_ph_w5.dta.dvc +5 -0
  171. lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_pp_w5.dta.dvc +5 -0
  172. lsms_library/countries/Ethiopia/2021-22/Documentation/LICENSE +29 -0
  173. lsms_library/countries/Ethiopia/2021-22/Documentation/SOURCE +1 -0
  174. lsms_library/countries/Ethiopia/2021-22/Documentation/SOURCE.org +3 -0
  175. lsms_library/countries/Ethiopia/2021-22/_/data_info.yml +157 -0
  176. lsms_library/countries/Ethiopia/2021-22/_/food_acquired.py +20 -0
  177. lsms_library/countries/Ethiopia/2021-22/_/sample.py +48 -0
  178. lsms_library/countries/Ethiopia/_/CONTENTS.org +130 -1
  179. lsms_library/countries/Ethiopia/_/Makefile +24 -20
  180. lsms_library/countries/Ethiopia/_/categorical_mapping.org +49 -0
  181. lsms_library/countries/Ethiopia/_/data_scheme.yml +61 -0
  182. lsms_library/countries/Ethiopia/_/ethiopia.py +18 -16
  183. lsms_library/countries/Ethiopia/_/fct_tools.py +4 -4
  184. lsms_library/countries/Ethiopia/_/food_acquired.py +2 -18
  185. lsms_library/countries/Ethiopia/_/food_items.org +82 -80
  186. lsms_library/countries/Ethiopia/_/nutrition.py +1 -1
  187. lsms_library/countries/Ethiopia/_/panel_ids.json +1 -0
  188. lsms_library/countries/Ethiopia/_/panel_ids.py +60 -0
  189. lsms_library/countries/Ethiopia/_/shocks.py +5 -12
  190. lsms_library/countries/Ethiopia/_/updated_ids.json +1 -0
  191. lsms_library/countries/GhanaLSS/1987-88/_/data_info.yml +8 -1
  192. lsms_library/countries/GhanaLSS/1987-88/_/food_acquired.py +4 -4
  193. lsms_library/countries/GhanaLSS/1987-88/_/mapping.py +11 -5
  194. lsms_library/countries/GhanaLSS/1988-89/_/data_info.yml +8 -1
  195. lsms_library/countries/GhanaLSS/1988-89/_/food_acquired.py +2 -2
  196. lsms_library/countries/GhanaLSS/1988-89/_/mapping.py +11 -5
  197. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/.gitignore +12 -0
  198. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Aggregat.doc.dvc +5 -0
  199. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3DEOMAN.DOC.dvc +5 -0
  200. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3INTMAN.DOC.dvc +5 -0
  201. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartA.doc.dvc +5 -0
  202. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartB.doc.dvc +5 -0
  203. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPrice.doc.dvc +5 -0
  204. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3REPORT.DOC.dvc +5 -0
  205. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3SUPMAN.DOC.dvc +5 -0
  206. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3USERSG.DOC.dvc +5 -0
  207. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3qcomm.doc.dvc +5 -0
  208. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Povprof.doc.dvc +5 -0
  209. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/overview_glss3.doc.dvc +5 -0
  210. lsms_library/countries/GhanaLSS/1991-92/_/data_info.yml +12 -1
  211. lsms_library/countries/GhanaLSS/1991-92/_/food_acquired.py +7 -9
  212. lsms_library/countries/GhanaLSS/1991-92/_/mapping.py +17 -5
  213. lsms_library/countries/GhanaLSS/1998-99/_/data_info.yml +12 -1
  214. lsms_library/countries/GhanaLSS/1998-99/_/food_acquired.py +3 -3
  215. lsms_library/countries/GhanaLSS/1998-99/_/mapping.py +19 -7
  216. lsms_library/countries/GhanaLSS/2005-06/_/data_info.yml +11 -1
  217. lsms_library/countries/GhanaLSS/2005-06/_/food_acquired.py +2 -2
  218. lsms_library/countries/GhanaLSS/2005-06/_/mapping.py +15 -3
  219. lsms_library/countries/GhanaLSS/2012-13/Documentation/.gitignore +1 -0
  220. lsms_library/countries/GhanaLSS/2012-13/Documentation/Notes on how glss6 compares with other glss.docx.dvc +5 -0
  221. lsms_library/countries/GhanaLSS/2012-13/_/data_info.yml +14 -2
  222. lsms_library/countries/GhanaLSS/2012-13/_/food_acquired.py +9 -11
  223. lsms_library/countries/GhanaLSS/2012-13/_/mapping.py +10 -0
  224. lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7 SECTION 10.docx.dvc +5 -0
  225. lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7_Community Quest.docx.dvc +5 -0
  226. lsms_library/countries/GhanaLSS/2016-17/Documentation/COVER PAGE _PRICE.docx.dvc +5 -0
  227. lsms_library/countries/GhanaLSS/2016-17/Documentation/DIARY.doc.dvc +5 -0
  228. lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7 Final Manual.docx.dvc +5 -0
  229. lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE A_30_9_16_for print.docx.dvc +5 -0
  230. lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE B _14_10_16.docx.dvc +5 -0
  231. lsms_library/countries/GhanaLSS/2016-17/Documentation/GPS Module 13_28_4_17.docx.dvc +5 -0
  232. lsms_library/countries/GhanaLSS/2016-17/Documentation/Supervisors' manual_GLSS7.doc.dvc +5 -0
  233. lsms_library/countries/GhanaLSS/2016-17/_/data_info.yml +14 -1
  234. lsms_library/countries/GhanaLSS/2016-17/_/food_acquired.py +6 -8
  235. lsms_library/countries/GhanaLSS/2016-17/_/mapping.py +10 -0
  236. lsms_library/countries/GhanaLSS/TODO +39 -0
  237. lsms_library/countries/GhanaLSS/_/CONTENTS.org +126 -0
  238. lsms_library/countries/GhanaLSS/_/Makefile +17 -18
  239. lsms_library/countries/GhanaLSS/_/data_scheme.yml +18 -4
  240. lsms_library/countries/GhanaLSS/_/food_acquired.py +5 -17
  241. lsms_library/countries/GhanaLSS/_/ghanalss.py +39 -30
  242. lsms_library/countries/GhanaLSS/_/household_roster.py +5 -14
  243. lsms_library/countries/GhanaLSS/_/panel_ids.json +1 -0
  244. lsms_library/countries/GhanaLSS/_/panel_ids.py +104 -0
  245. lsms_library/countries/GhanaLSS/_/updated_ids.json +1 -0
  246. lsms_library/countries/GhanaLSS/dvc.yaml +1 -0
  247. lsms_library/countries/GhanaSPS/2009-10/_/food_acquired.py +1 -1
  248. lsms_library/countries/GhanaSPS/2013-14/Documentation/.gitignore +3 -0
  249. lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Community Survey_WAVE II.docx.dvc +6 -0
  250. lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part A_WAVE II.docx.dvc +6 -0
  251. lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part B_WAVE II.docx.dvc +6 -0
  252. lsms_library/countries/GhanaSPS/2013-14/_/food_acquired.py +1 -1
  253. lsms_library/countries/GhanaSPS/2017-18/Documentation/Questionnaire/.gitignore +1 -0
  254. lsms_library/countries/GhanaSPS/2017-18/Documentation/Questionnaire/HH_Questionnaire_23_10.docx.dvc +5 -0
  255. lsms_library/countries/GhanaSPS/2017-18/_/food_acquired.py +1 -1
  256. lsms_library/countries/GhanaSPS/_/Makefile +11 -15
  257. lsms_library/countries/GhanaSPS/_/food_acquired.py +1 -11
  258. lsms_library/countries/GhanaSPS/_/ghanasps.py +14 -13
  259. lsms_library/countries/Guatemala/2000/_/data_info.yml +70 -0
  260. lsms_library/countries/Guatemala/_/Makefile +14 -19
  261. lsms_library/countries/Guatemala/_/data_scheme.yml +27 -0
  262. lsms_library/countries/Guatemala/_/food_acquired.py +0 -5
  263. lsms_library/countries/Guatemala/_/guatemala.py +2 -2
  264. lsms_library/countries/Guinea-Bissau/2018-19/_/2018-19.py +57 -0
  265. lsms_library/countries/Guinea-Bissau/2018-19/_/data_info.yml +219 -0
  266. lsms_library/countries/Guinea-Bissau/_/categorical_mapping.org +12 -0
  267. lsms_library/countries/Guinea-Bissau/_/data_scheme.yml +62 -0
  268. lsms_library/countries/Guinea-Bissau/_/guinea-bissau.py +11 -0
  269. lsms_library/countries/Guyana/1992/_/1992.py +7 -0
  270. lsms_library/countries/Guyana/1992/_/data_info.yml +82 -0
  271. lsms_library/countries/Guyana/_/data_scheme.yml +26 -0
  272. lsms_library/countries/Harmonized_LSMS-ISA_Ag/lsms_ag.parquet.dvc +5 -0
  273. lsms_library/countries/India/1997-98/_/data_info.yml +61 -0
  274. lsms_library/countries/India/1997-98/_/testing.py +9 -0
  275. lsms_library/countries/India/_/data_scheme.yml +32 -0
  276. lsms_library/countries/Iraq/2006-07/_/data_info.yml +85 -0
  277. lsms_library/countries/Iraq/2012/_/data_info.yml +30 -0
  278. lsms_library/countries/Iraq/_/data_scheme.yml +19 -0
  279. lsms_library/countries/Kazakhstan/1996/_/data_info.yml +59 -0
  280. lsms_library/countries/Kazakhstan/1996/dvc.yaml +1 -0
  281. lsms_library/countries/Kazakhstan/1996/var/.gitkeep +0 -0
  282. lsms_library/countries/Kazakhstan/_/data_scheme.yml +30 -0
  283. lsms_library/countries/Kazakhstan/dvc.yaml +1 -0
  284. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_C-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
  285. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_C-Module_PUBLIC_2015-12.dta.dvc +5 -0
  286. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_E-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
  287. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_E-Module_PUBLIC_2015-12.dta.dvc +5 -0
  288. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_F-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
  289. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_F-Module_PUBLIC_2015-12.dta.dvc +5 -0
  290. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_H-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
  291. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_H-Module_PUBLIC_2015-12.dta.dvc +5 -0
  292. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_SampleMaster_PUBLIC_2015-12.dta.dvc +5 -0
  293. lsms_library/countries/KenyaLPS/2015/Data/KLPS1_Status_PUBLIC_2015-12.dta.dvc +5 -0
  294. lsms_library/countries/Kosovo/2000/_/data_info.yml +73 -0
  295. lsms_library/countries/Kosovo/_/data_scheme.yml +29 -0
  296. lsms_library/countries/Liberia/2018-19/_/2018-19.py +13 -0
  297. lsms_library/countries/Liberia/2018-19/_/data_info.yml +38 -0
  298. lsms_library/countries/Liberia/_/data_scheme.yml +29 -0
  299. lsms_library/countries/Malawi/2004-05/_/data_info.yml +85 -2
  300. lsms_library/countries/Malawi/2004-05/_/food_acquired.py +4 -7
  301. lsms_library/countries/Malawi/2004-05/dvc.yaml +1 -0
  302. lsms_library/countries/Malawi/2004-05/var/.gitkeep +0 -0
  303. lsms_library/countries/Malawi/2010-11/_/data_info.yml +166 -10
  304. lsms_library/countries/Malawi/2010-11/_/food_acquired.py +17 -7
  305. lsms_library/countries/Malawi/2010-11/dvc.yaml +1 -0
  306. lsms_library/countries/Malawi/2010-11/var/.gitkeep +0 -0
  307. lsms_library/countries/Malawi/2013-14/_/data_info.yml +136 -10
  308. lsms_library/countries/Malawi/2013-14/_/food_acquired.py +22 -14
  309. lsms_library/countries/Malawi/2013-14/dvc.yaml +1 -0
  310. lsms_library/countries/Malawi/2013-14/var/.gitkeep +0 -0
  311. lsms_library/countries/Malawi/2016-17/_/2016-17.py +1 -1
  312. lsms_library/countries/Malawi/2016-17/_/data_info.yml +171 -16
  313. lsms_library/countries/Malawi/2016-17/_/food_acquired.py +13 -6
  314. lsms_library/countries/Malawi/2016-17/dvc.yaml +1 -0
  315. lsms_library/countries/Malawi/2016-17/var/.gitkeep +0 -0
  316. lsms_library/countries/Malawi/2019-20/_/2019-20.py +1 -1
  317. lsms_library/countries/Malawi/2019-20/_/data_info.yml +166 -17
  318. lsms_library/countries/Malawi/2019-20/_/food_acquired.py +14 -5
  319. lsms_library/countries/Malawi/2019-20/dvc.yaml +1 -0
  320. lsms_library/countries/Malawi/2019-20/var/.gitkeep +0 -0
  321. lsms_library/countries/Malawi/_/CONTENTS.org +109 -4
  322. lsms_library/countries/Malawi/_/Makefile +14 -18
  323. lsms_library/countries/Malawi/_/categorical_mapping.org +97 -0
  324. lsms_library/countries/Malawi/_/data_scheme.yml +39 -11
  325. lsms_library/countries/Malawi/_/food_acquired.py +15 -19
  326. lsms_library/countries/Malawi/_/food_prices_quantities_and_expenditures.py +3 -4
  327. lsms_library/countries/Malawi/_/malawi.py +42 -16
  328. lsms_library/countries/Malawi/dvc.yaml +1 -0
  329. lsms_library/countries/Mali/2014-15/_/2014-15.py +2 -2
  330. lsms_library/countries/Mali/2014-15/_/data_info.yml +138 -47
  331. lsms_library/countries/Mali/2017-18/_/2017-18.py +4 -1
  332. lsms_library/countries/Mali/2017-18/_/data_info.yml +126 -10
  333. lsms_library/countries/Mali/2018-19/_/2018-19.py +60 -0
  334. lsms_library/countries/Mali/2018-19/_/data_info.yml +158 -10
  335. lsms_library/countries/Mali/2021-22/_/2021-22.py +61 -2
  336. lsms_library/countries/Mali/2021-22/_/data_info.yml +157 -19
  337. lsms_library/countries/Mali/_/Makefile +18 -0
  338. lsms_library/countries/Mali/_/categorical_mapping.org +9 -0
  339. lsms_library/countries/Mali/_/data_scheme.yml +37 -8
  340. lsms_library/countries/Mali/_/mali.py +10 -10
  341. lsms_library/countries/Mali/_/panel_ids.json +1 -0
  342. lsms_library/countries/Mali/_/panel_ids.py +158 -0
  343. lsms_library/countries/Mali/_/updated_ids.json +1 -0
  344. lsms_library/countries/Nepal/1995-96/_/data_info.yml +35 -0
  345. lsms_library/countries/Nepal/2003-04/_/data_info.yml +35 -0
  346. lsms_library/countries/Nepal/2010-11/_/data_info.yml +25 -0
  347. lsms_library/countries/Nepal/_/CONTENTS.org +81 -0
  348. lsms_library/countries/Nepal/_/Makefile +26 -0
  349. lsms_library/countries/Nepal/_/data_scheme.yml +39 -15
  350. lsms_library/countries/Nepal/_/nepal.py +7 -0
  351. lsms_library/countries/Niger/2011-12/_/data_info.yml +142 -0
  352. lsms_library/countries/Niger/2014-15/_/data_info.yml +145 -0
  353. lsms_library/countries/Niger/2018-19/_/data_info.yml +221 -0
  354. lsms_library/countries/Niger/2021-22/Data/calorie_conversion_wa_2021.dta.dvc +5 -0
  355. lsms_library/countries/Niger/2021-22/Data/ehcvm_conso_ner2021.dta.dvc +5 -0
  356. lsms_library/countries/Niger/2021-22/Data/ehcvm_ihpc_ner2021.dta.dvc +5 -0
  357. lsms_library/countries/Niger/2021-22/Data/ehcvm_ihpcreg_ner2021.dta.dvc +5 -0
  358. lsms_library/countries/Niger/2021-22/Data/ehcvm_individu_ner2021.dta.dvc +5 -0
  359. lsms_library/countries/Niger/2021-22/Data/ehcvm_menage_ner2021.dta.dvc +5 -0
  360. lsms_library/countries/Niger/2021-22/Data/ehcvm_nsu_ner2021.dta.dvc +5 -0
  361. lsms_library/countries/Niger/2021-22/Data/ehcvm_ponderations_ner2021.dta.dvc +5 -0
  362. lsms_library/countries/Niger/2021-22/Data/ehcvm_prix_ner2021.dta.dvc +5 -0
  363. lsms_library/countries/Niger/2021-22/Data/ehcvm_welfare_ner2021.dta.dvc +5 -0
  364. lsms_library/countries/Niger/2021-22/Data/s00_co_ner2021.dta.dvc +5 -0
  365. lsms_library/countries/Niger/2021-22/Data/s00_me_ner2021.dta.dvc +5 -0
  366. lsms_library/countries/Niger/2021-22/Data/s01_co_ner2021.dta.dvc +5 -0
  367. lsms_library/countries/Niger/2021-22/Data/s01_me_ner2021.dta.dvc +5 -0
  368. lsms_library/countries/Niger/2021-22/Data/s02_co_ner2021.dta.dvc +5 -0
  369. lsms_library/countries/Niger/2021-22/Data/s02_me_ner2021.dta.dvc +5 -0
  370. lsms_library/countries/Niger/2021-22/Data/s03_co_ner2021.dta.dvc +5 -0
  371. lsms_library/countries/Niger/2021-22/Data/s03_me_ner2021.dta.dvc +5 -0
  372. lsms_library/countries/Niger/2021-22/Data/s04_co_ner2021.dta.dvc +5 -0
  373. lsms_library/countries/Niger/2021-22/Data/s04a_me_ner2021.dta.dvc +5 -0
  374. lsms_library/countries/Niger/2021-22/Data/s04b_me_ner2021.dta.dvc +5 -0
  375. lsms_library/countries/Niger/2021-22/Data/s04c_me_ner2021.dta.dvc +5 -0
  376. lsms_library/countries/Niger/2021-22/Data/s05_me_ner2021.dta.dvc +5 -0
  377. lsms_library/countries/Niger/2021-22/Data/s06_me_ner2021.dta.dvc +5 -0
  378. lsms_library/countries/Niger/2021-22/Data/s07a_1_me_ner2021.dta.dvc +5 -0
  379. lsms_library/countries/Niger/2021-22/Data/s07a_2_me_ner2021.dta.dvc +5 -0
  380. lsms_library/countries/Niger/2021-22/Data/s07b_me_ner2021.dta.dvc +5 -0
  381. lsms_library/countries/Niger/2021-22/Data/s08a_me_ner2021.dta.dvc +5 -0
  382. lsms_library/countries/Niger/2021-22/Data/s09a_me_ner2021.dta.dvc +5 -0
  383. lsms_library/countries/Niger/2021-22/Data/s09b_me_ner2021.dta.dvc +5 -0
  384. lsms_library/countries/Niger/2021-22/Data/s09c_me_ner2021.dta.dvc +5 -0
  385. lsms_library/countries/Niger/2021-22/Data/s09d_me_ner2021.dta.dvc +5 -0
  386. lsms_library/countries/Niger/2021-22/Data/s09e_me_ner2021.dta.dvc +5 -0
  387. lsms_library/countries/Niger/2021-22/Data/s09f_me_ner2021.dta.dvc +5 -0
  388. lsms_library/countries/Niger/2021-22/Data/s10a_me_ner2021.dta.dvc +5 -0
  389. lsms_library/countries/Niger/2021-22/Data/s10b_me_ner2021.dta.dvc +5 -0
  390. lsms_library/countries/Niger/2021-22/Data/s11_me_ner2021.dta.dvc +5 -0
  391. lsms_library/countries/Niger/2021-22/Data/s12_me_ner2021.dta.dvc +5 -0
  392. lsms_library/countries/Niger/2021-22/Data/s13_1_me_ner2021.dta.dvc +5 -0
  393. lsms_library/countries/Niger/2021-22/Data/s13_2_me_ner2021.dta.dvc +5 -0
  394. lsms_library/countries/Niger/2021-22/Data/s14a_me_ner2021.dta.dvc +5 -0
  395. lsms_library/countries/Niger/2021-22/Data/s14b_me_ner2021.dta.dvc +5 -0
  396. lsms_library/countries/Niger/2021-22/Data/s15_me_ner2021.dta.dvc +5 -0
  397. lsms_library/countries/Niger/2021-22/Data/s16a_me_ner2021.dta.dvc +5 -0
  398. lsms_library/countries/Niger/2021-22/Data/s16b_me_ner2021.dta.dvc +5 -0
  399. lsms_library/countries/Niger/2021-22/Data/s16c_me_ner2021.dta.dvc +5 -0
  400. lsms_library/countries/Niger/2021-22/Data/s16d_me_ner2021.dta.dvc +5 -0
  401. lsms_library/countries/Niger/2021-22/Data/s17_me_ner2021.dta.dvc +5 -0
  402. lsms_library/countries/Niger/2021-22/Data/s19_me_ner2021.dta.dvc +5 -0
  403. lsms_library/countries/Niger/2021-22/Data/s20a_me_ner2021.dta.dvc +5 -0
  404. lsms_library/countries/Niger/2021-22/Data/s20b_1_me_ner2021.dta.dvc +5 -0
  405. lsms_library/countries/Niger/2021-22/Data/s20b_2_me_ner2021.dta.dvc +5 -0
  406. lsms_library/countries/Niger/2021-22/Data/s20b_3_me_ner2021.dta.dvc +5 -0
  407. lsms_library/countries/Niger/2021-22/Data/s20c_me_ner2021.dta.dvc +5 -0
  408. lsms_library/countries/Niger/2021-22/Documentation/SOURCE.org +3 -0
  409. lsms_library/countries/Niger/2021-22/_/data_info.yml +213 -0
  410. lsms_library/countries/Niger/_/Makefile +17 -0
  411. lsms_library/countries/Niger/_/categorical_mapping.org +116 -0
  412. lsms_library/countries/Niger/_/data_scheme.yml +71 -0
  413. lsms_library/countries/Niger/_/niger.py +108 -8
  414. lsms_library/countries/Niger/_/panel_ids.json +1 -0
  415. lsms_library/countries/Niger/_/panel_ids.py +207 -0
  416. lsms_library/countries/Niger/_/updated_ids.json +1 -0
  417. lsms_library/countries/Nigeria/2010-11/_/data_info.yml +75 -0
  418. lsms_library/countries/Nigeria/2010-11/_/food_acquired.py +100 -0
  419. lsms_library/countries/Nigeria/2010-11/_/household_roster.py +14 -14
  420. lsms_library/countries/Nigeria/2010-11/_/housing.py +55 -0
  421. lsms_library/countries/Nigeria/2010-11/_/interview_date.py +2 -2
  422. lsms_library/countries/Nigeria/2010-11/_/nonfood_expenditures.py +1 -1
  423. lsms_library/countries/Nigeria/2010-11/_/plots.py +1 -1
  424. lsms_library/countries/Nigeria/2012-13/_/data_info.yml +101 -0
  425. lsms_library/countries/Nigeria/2012-13/_/food_acquired.py +92 -0
  426. lsms_library/countries/Nigeria/2012-13/_/household_roster.py +14 -14
  427. lsms_library/countries/Nigeria/2012-13/_/housing.py +48 -0
  428. lsms_library/countries/Nigeria/2012-13/_/individual_unit_values.py +2 -2
  429. lsms_library/countries/Nigeria/2012-13/_/interview_date.py +2 -2
  430. lsms_library/countries/Nigeria/2012-13/_/nonfood_expenditures.py +1 -1
  431. lsms_library/countries/Nigeria/2012-13/_/plots.py +1 -1
  432. lsms_library/countries/Nigeria/2012-13/_/units.py +4 -4
  433. lsms_library/countries/Nigeria/2015-16/_/data_info.yml +92 -0
  434. lsms_library/countries/Nigeria/2015-16/_/food_acquired.py +92 -0
  435. lsms_library/countries/Nigeria/2015-16/_/household_roster.py +14 -14
  436. lsms_library/countries/Nigeria/2015-16/_/housing.py +46 -0
  437. lsms_library/countries/Nigeria/2015-16/_/individual_unit_values.py +2 -2
  438. lsms_library/countries/Nigeria/2015-16/_/interview_date.py +2 -2
  439. lsms_library/countries/Nigeria/2015-16/_/nonfood_expenditures.py +1 -1
  440. lsms_library/countries/Nigeria/2015-16/_/plots.py +1 -1
  441. lsms_library/countries/Nigeria/2015-16/_/units.py +2 -3
  442. lsms_library/countries/Nigeria/2018-19/_/data_info.yml +85 -0
  443. lsms_library/countries/Nigeria/2018-19/_/food_acquired.py +105 -0
  444. lsms_library/countries/Nigeria/2018-19/_/household_roster.py +14 -14
  445. lsms_library/countries/Nigeria/2018-19/_/housing.py +61 -0
  446. lsms_library/countries/Nigeria/2018-19/_/individual_unit_values.py +2 -2
  447. lsms_library/countries/Nigeria/2018-19/_/interview_date.py +2 -2
  448. lsms_library/countries/Nigeria/2018-19/_/nonfood_expenditures.py +1 -1
  449. lsms_library/countries/Nigeria/2018-19/_/plots.py +1 -1
  450. lsms_library/countries/Nigeria/2018-19/_/units.py +2 -3
  451. lsms_library/countries/Nigeria/2023-24/_/data_info.yml +33 -0
  452. lsms_library/countries/Nigeria/2023-24/_/housing.py +63 -0
  453. lsms_library/countries/Nigeria/_/CONTENTS.org +63 -0
  454. lsms_library/countries/Nigeria/_/Makefile +62 -21
  455. lsms_library/countries/Nigeria/_/categorical_mapping.org +377 -0
  456. lsms_library/countries/Nigeria/_/data_scheme.yml +69 -0
  457. lsms_library/countries/Nigeria/_/food_acquired.py +12 -0
  458. lsms_library/countries/Nigeria/_/household_roster.py +0 -2
  459. lsms_library/countries/Nigeria/_/housing.py +11 -0
  460. lsms_library/countries/Nigeria/_/interview_date.py +12 -0
  461. lsms_library/countries/Nigeria/_/nigeria.py +16 -2
  462. lsms_library/countries/Pakistan/1991/_/1991.py +11 -0
  463. lsms_library/countries/Pakistan/1991/_/data_info.yml +80 -0
  464. lsms_library/countries/Pakistan/_/data_scheme.yml +31 -0
  465. lsms_library/countries/Panama/1997/_/food_acquired.py +2 -2
  466. lsms_library/countries/Panama/2003/_/food_acquired.py +2 -2
  467. lsms_library/countries/Panama/2008/_/food_acquired.py +6 -6
  468. lsms_library/countries/Panama/_/CONTENTS.org +28 -1
  469. lsms_library/countries/Panama/_/Makefile +12 -17
  470. lsms_library/countries/Panama/_/food_acquired.py +1 -6
  471. lsms_library/countries/Panama/_/nutrition.py +2 -2
  472. lsms_library/countries/Panama/_/panama.py +1 -1
  473. lsms_library/countries/Peru/1994/_/data_info.yml +16 -58
  474. lsms_library/countries/Peru/_/categorical_mapping.org +101 -0
  475. lsms_library/countries/Peru/_/data_info.yml +1 -1
  476. lsms_library/countries/Senegal/2018-19/_/2018-19.py +72 -20
  477. lsms_library/countries/Senegal/2018-19/_/data_info.yml +210 -21
  478. lsms_library/countries/Senegal/2018-19/_/food_acquired.py +1 -1
  479. lsms_library/countries/Senegal/2021-22/Data/calorie_conversion_wa_2021.dta.dvc +5 -0
  480. lsms_library/countries/Senegal/2021-22/Data/ehcvm_conso_sen2021.dta.dvc +5 -0
  481. lsms_library/countries/Senegal/2021-22/Data/ehcvm_ihpc_sen2021.dta.dvc +5 -0
  482. lsms_library/countries/Senegal/2021-22/Data/ehcvm_individu_sen2021.dta.dvc +5 -0
  483. lsms_library/countries/Senegal/2021-22/Data/ehcvm_menage_sen2021.dta.dvc +5 -0
  484. lsms_library/countries/Senegal/2021-22/Data/ehcvm_nsu_sen2021.dta.dvc +5 -0
  485. lsms_library/countries/Senegal/2021-22/Data/ehcvm_nsu_sen2021_nat.dta.dvc +5 -0
  486. lsms_library/countries/Senegal/2021-22/Data/ehcvm_nsu_sen2021_nat2023.dta.dvc +5 -0
  487. lsms_library/countries/Senegal/2021-22/Data/ehcvm_ponderations_sen2021.dta.dvc +5 -0
  488. lsms_library/countries/Senegal/2021-22/Data/ehcvm_prix_sen2021.dta.dvc +5 -0
  489. lsms_library/countries/Senegal/2021-22/Data/ehcvm_welfare_sen2021.dta.dvc +5 -0
  490. lsms_library/countries/Senegal/2021-22/Data/s00_co_sen2021.dta.dvc +5 -0
  491. lsms_library/countries/Senegal/2021-22/Data/s00_me_sen2021.dta.dvc +5 -0
  492. lsms_library/countries/Senegal/2021-22/Data/s01_co_sen2021.dta.dvc +5 -0
  493. lsms_library/countries/Senegal/2021-22/Data/s01_me_sen2021.dta.dvc +5 -0
  494. lsms_library/countries/Senegal/2021-22/Data/s02_co_sen2021.dta.dvc +5 -0
  495. lsms_library/countries/Senegal/2021-22/Data/s02_me_sen2021.dta.dvc +5 -0
  496. lsms_library/countries/Senegal/2021-22/Data/s03_co_sen2021.dta.dvc +5 -0
  497. lsms_library/countries/Senegal/2021-22/Data/s03_me_sen2021.dta.dvc +5 -0
  498. lsms_library/countries/Senegal/2021-22/Data/s04_co_sen2021.dta.dvc +5 -0
  499. lsms_library/countries/Senegal/2021-22/Data/s04a_me_sen2021.dta.dvc +5 -0
  500. lsms_library/countries/Senegal/2021-22/Data/s04b_me_sen2021.dta.dvc +5 -0
  501. lsms_library/countries/Senegal/2021-22/Data/s04c_me_sen2021.dta.dvc +5 -0
  502. lsms_library/countries/Senegal/2021-22/Data/s05_me_sen2021.dta.dvc +5 -0
  503. lsms_library/countries/Senegal/2021-22/Data/s06_me_sen2021.dta.dvc +5 -0
  504. lsms_library/countries/Senegal/2021-22/Data/s07a_1_me_sen2021.dta.dvc +5 -0
  505. lsms_library/countries/Senegal/2021-22/Data/s07a_2_me_sen2021.dta.dvc +5 -0
  506. lsms_library/countries/Senegal/2021-22/Data/s07b_me_sen2021.dta.dvc +5 -0
  507. lsms_library/countries/Senegal/2021-22/Data/s08a_me_sen2021.dta.dvc +5 -0
  508. lsms_library/countries/Senegal/2021-22/Data/s09a_me_sen2021.dta.dvc +5 -0
  509. lsms_library/countries/Senegal/2021-22/Data/s09b_me_sen2021.dta.dvc +5 -0
  510. lsms_library/countries/Senegal/2021-22/Data/s09c_me_sen2021.dta.dvc +5 -0
  511. lsms_library/countries/Senegal/2021-22/Data/s09d_me_sen2021.dta.dvc +5 -0
  512. lsms_library/countries/Senegal/2021-22/Data/s09e_me_sen2021.dta.dvc +5 -0
  513. lsms_library/countries/Senegal/2021-22/Data/s09f_me_sen2021.dta.dvc +5 -0
  514. lsms_library/countries/Senegal/2021-22/Data/s10a_me_sen2021.dta.dvc +5 -0
  515. lsms_library/countries/Senegal/2021-22/Data/s10b_me_sen2021.dta.dvc +5 -0
  516. lsms_library/countries/Senegal/2021-22/Data/s11_me_sen2021.dta.dvc +5 -0
  517. lsms_library/countries/Senegal/2021-22/Data/s12_me_sen2021.dta.dvc +5 -0
  518. lsms_library/countries/Senegal/2021-22/Data/s13_1_me_sen2021.dta.dvc +5 -0
  519. lsms_library/countries/Senegal/2021-22/Data/s13_2_me_sen2021.dta.dvc +5 -0
  520. lsms_library/countries/Senegal/2021-22/Data/s14a_me_sen2021.dta.dvc +5 -0
  521. lsms_library/countries/Senegal/2021-22/Data/s14b_me_sen2021.dta.dvc +5 -0
  522. lsms_library/countries/Senegal/2021-22/Data/s15_me_sen2021.dta.dvc +5 -0
  523. lsms_library/countries/Senegal/2021-22/Data/s16a_me_sen2021.dta.dvc +5 -0
  524. lsms_library/countries/Senegal/2021-22/Data/s16b_me_sen2021.dta.dvc +5 -0
  525. lsms_library/countries/Senegal/2021-22/Data/s16c_me_sen2021.dta.dvc +5 -0
  526. lsms_library/countries/Senegal/2021-22/Data/s16d_me_sen2021.dta.dvc +5 -0
  527. lsms_library/countries/Senegal/2021-22/Data/s17_me_sen2021.dta.dvc +5 -0
  528. lsms_library/countries/Senegal/2021-22/Data/s18_1_me_sen2021.dta.dvc +5 -0
  529. lsms_library/countries/Senegal/2021-22/Data/s18_2_me_sen2021.dta.dvc +5 -0
  530. lsms_library/countries/Senegal/2021-22/Data/s18_3_me_sen2021.dta.dvc +5 -0
  531. lsms_library/countries/Senegal/2021-22/Data/s19_me_sen2021.dta.dvc +5 -0
  532. lsms_library/countries/Senegal/2021-22/Data/s20a_me_sen2021.dta.dvc +5 -0
  533. lsms_library/countries/Senegal/2021-22/Data/s20b_1_me_sen2021.dta.dvc +5 -0
  534. lsms_library/countries/Senegal/2021-22/Data/s20b_2_me_sen2021.dta.dvc +5 -0
  535. lsms_library/countries/Senegal/2021-22/Data/s20b_3_me_sen2021.dta.dvc +5 -0
  536. lsms_library/countries/Senegal/2021-22/Data/s20c_me_sen2021.dta.dvc +5 -0
  537. lsms_library/countries/Senegal/2021-22/_/2021-22.py +148 -0
  538. lsms_library/countries/Senegal/2021-22/_/data_info.yml +236 -0
  539. lsms_library/countries/Senegal/_/Makefile +18 -17
  540. lsms_library/countries/Senegal/_/categorical_mapping.org +448 -0
  541. lsms_library/countries/Senegal/_/data_scheme.yml +57 -2
  542. lsms_library/countries/Senegal/_/food_acquired.py +1 -4
  543. lsms_library/countries/Senegal/_/panel_ids.json +1 -0
  544. lsms_library/countries/Senegal/_/panel_ids.py +113 -0
  545. lsms_library/countries/Senegal/_/senegal.py +19 -1
  546. lsms_library/countries/Senegal/_/updated_ids.json +1 -0
  547. lsms_library/countries/Senegal/dvc.yaml +1 -0
  548. lsms_library/countries/Serbia/2007/_/2007.py +7 -0
  549. lsms_library/countries/Serbia/2007/_/data_info.yml +54 -0
  550. lsms_library/countries/Serbia/2007/_/food_acquired.py +1 -1
  551. lsms_library/countries/Serbia/_/CONTENTS.org +152 -10
  552. lsms_library/countries/Serbia/_/Makefile +10 -15
  553. lsms_library/countries/Serbia/_/data_scheme.yml +24 -0
  554. lsms_library/countries/Serbia/_/food_acquired.py +1 -6
  555. lsms_library/countries/Serbia/_/serbia.py +1 -1
  556. lsms_library/countries/Serbia/dvc.yaml +1 -0
  557. lsms_library/countries/Serbia and Montenegro/2002/_/2002.py +7 -0
  558. lsms_library/countries/Serbia and Montenegro/2002/_/data_info.yml +41 -0
  559. lsms_library/countries/Serbia and Montenegro/2003/_/2003.py +7 -0
  560. lsms_library/countries/Serbia and Montenegro/2003/_/data_info.yml +42 -0
  561. lsms_library/countries/Serbia and Montenegro/_/data_scheme.yml +24 -0
  562. lsms_library/countries/South Africa/1993/_/data_info.yml +67 -0
  563. lsms_library/countries/South Africa/_/data_scheme.yml +24 -0
  564. lsms_library/countries/Tajikistan/1999/_/1999.py +7 -0
  565. lsms_library/countries/Tajikistan/1999/_/data_info.yml +73 -0
  566. lsms_library/countries/Tajikistan/2003/_/data_info.yml +73 -0
  567. lsms_library/countries/Tajikistan/2007/_/data_info.yml +73 -0
  568. lsms_library/countries/Tajikistan/2009/_/data_info.yml +73 -0
  569. lsms_library/countries/Tajikistan/_/data_scheme.yml +26 -0
  570. lsms_library/countries/Tanzania/2008-15/_/cluster_features.py +24 -0
  571. lsms_library/countries/Tanzania/2008-15/_/household_roster.py +38 -0
  572. lsms_library/countries/Tanzania/2008-15/_/housing.py +45 -0
  573. lsms_library/countries/Tanzania/2008-15/_/sample.py +57 -0
  574. lsms_library/countries/Tanzania/2008-15/_/shocks.py +53 -56
  575. lsms_library/countries/Tanzania/2019-20/Documentation/.gitignore +1 -0
  576. lsms_library/countries/Tanzania/2019-20/Documentation/TZA_2019_NPS-SDD_v06_M.xml.dvc +5 -0
  577. lsms_library/countries/Tanzania/2019-20/_/2019-20.py +7 -0
  578. lsms_library/countries/Tanzania/2019-20/_/community_prices.py +1 -1
  579. lsms_library/countries/Tanzania/2019-20/_/data_info.yml +128 -0
  580. lsms_library/countries/Tanzania/2019-20/_/finances.py +1 -1
  581. lsms_library/countries/Tanzania/2019-20/_/shocks.py +50 -25
  582. lsms_library/countries/Tanzania/2020-21/_/2020-21.py +7 -0
  583. lsms_library/countries/Tanzania/2020-21/_/community_prices.py +3 -3
  584. lsms_library/countries/Tanzania/2020-21/_/data_info.yml +120 -0
  585. lsms_library/countries/Tanzania/2020-21/_/finances.py +1 -1
  586. lsms_library/countries/Tanzania/2020-21/_/labor_recent.py +1 -1
  587. lsms_library/countries/Tanzania/2020-21/_/shocks.py +50 -24
  588. lsms_library/countries/Tanzania/_/CONTENTS.org +276 -45
  589. lsms_library/countries/Tanzania/_/Makefile +10 -25
  590. lsms_library/countries/Tanzania/_/categorical_mapping.org +430 -0
  591. lsms_library/countries/Tanzania/_/data_scheme.yml +56 -0
  592. lsms_library/countries/Tanzania/_/food_acquired.py +2 -11
  593. lsms_library/countries/Tanzania/_/food_prices_quantities_and_expenditures.py +4 -4
  594. lsms_library/countries/Tanzania/_/panel_ids.json +1 -1
  595. lsms_library/countries/Tanzania/_/panel_ids.py +86 -7
  596. lsms_library/countries/Tanzania/_/shocks.py +41 -17
  597. lsms_library/countries/Tanzania/_/tanzania.py +149 -24
  598. lsms_library/countries/Tanzania/_/updated_ids.json +1 -1
  599. lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/.gitignore +1 -0
  600. lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/TZA_2004_KHDS_v01_M.xml.dvc +5 -0
  601. lsms_library/countries/Timor-Leste/2001/_/data_info.yml +42 -0
  602. lsms_library/countries/Timor-Leste/2007-08/_/data_info.yml +27 -0
  603. lsms_library/countries/Timor-Leste/_/data_scheme.yml +21 -0
  604. lsms_library/countries/Togo/2018/_/2018.py +58 -0
  605. lsms_library/countries/Togo/2018/_/data_info.yml +225 -0
  606. lsms_library/countries/Togo/2018/_/food_expenditures.py +1 -1
  607. lsms_library/countries/Togo/_/Makefile +11 -15
  608. lsms_library/countries/Togo/_/data_scheme.yml +56 -0
  609. lsms_library/countries/Togo/_/togo.py +12 -1
  610. lsms_library/countries/Togo/dvc.yaml +1 -0
  611. lsms_library/countries/Uganda/2005-06/Data/2009_UNPS_Geovars_0910.dta.dvc +5 -0
  612. lsms_library/countries/Uganda/2005-06/_/assets.py +1 -1
  613. lsms_library/countries/Uganda/2005-06/_/data_info.yml +29 -0
  614. lsms_library/countries/Uganda/2005-06/_/earnings.py +1 -1
  615. lsms_library/countries/Uganda/2005-06/_/education_expenses.py +1 -1
  616. lsms_library/countries/Uganda/2005-06/_/enterprise_income.py +1 -1
  617. lsms_library/countries/Uganda/2005-06/_/plots.py +1 -1
  618. lsms_library/countries/Uganda/2005-06/_/shocks.py +7 -7
  619. lsms_library/countries/Uganda/2009-10/_/assets.py +1 -1
  620. lsms_library/countries/Uganda/2009-10/_/data_info.yml +53 -8
  621. lsms_library/countries/Uganda/2009-10/_/earnings.py +1 -1
  622. lsms_library/countries/Uganda/2009-10/_/education_expenses.py +1 -1
  623. lsms_library/countries/Uganda/2009-10/_/enterprise_income.py +1 -1
  624. lsms_library/countries/Uganda/2009-10/_/plots.py +1 -1
  625. lsms_library/countries/Uganda/2009-10/_/shocks.py +8 -8
  626. lsms_library/countries/Uganda/2010-11/_/assets.py +1 -1
  627. lsms_library/countries/Uganda/2010-11/_/data_info.yml +52 -7
  628. lsms_library/countries/Uganda/2010-11/_/earnings.py +1 -1
  629. lsms_library/countries/Uganda/2010-11/_/education_expenses.py +1 -1
  630. lsms_library/countries/Uganda/2010-11/_/enterprise_income.py +1 -1
  631. lsms_library/countries/Uganda/2010-11/_/plots.py +1 -1
  632. lsms_library/countries/Uganda/2010-11/_/shocks.py +8 -8
  633. lsms_library/countries/Uganda/2011-12/_/assets.py +1 -1
  634. lsms_library/countries/Uganda/2011-12/_/data_info.yml +49 -4
  635. lsms_library/countries/Uganda/2011-12/_/earnings.py +1 -1
  636. lsms_library/countries/Uganda/2011-12/_/enterprise_income.py +1 -1
  637. lsms_library/countries/Uganda/2011-12/_/plots.py +1 -1
  638. lsms_library/countries/Uganda/2011-12/_/shocks.py +8 -8
  639. lsms_library/countries/Uganda/2013-14/Data/unps_geovars_2013_14.dta.dvc +5 -0
  640. lsms_library/countries/Uganda/2013-14/_/assets.py +1 -1
  641. lsms_library/countries/Uganda/2013-14/_/data_info.yml +29 -0
  642. lsms_library/countries/Uganda/2013-14/_/earnings.py +1 -1
  643. lsms_library/countries/Uganda/2013-14/_/education_expenses.py +1 -1
  644. lsms_library/countries/Uganda/2013-14/_/enterprise_income.py +1 -1
  645. lsms_library/countries/Uganda/2013-14/_/plots.py +1 -1
  646. lsms_library/countries/Uganda/2013-14/_/shocks.py +8 -8
  647. lsms_library/countries/Uganda/2015-16/Data/unps_geovars_2015_16.dta.dvc +5 -0
  648. lsms_library/countries/Uganda/2015-16/_/assets.py +1 -1
  649. lsms_library/countries/Uganda/2015-16/_/data_info.yml +29 -0
  650. lsms_library/countries/Uganda/2015-16/_/earnings.py +1 -1
  651. lsms_library/countries/Uganda/2015-16/_/education_expenses.py +1 -1
  652. lsms_library/countries/Uganda/2015-16/_/enterprise_income.py +1 -1
  653. lsms_library/countries/Uganda/2015-16/_/nonfood_expenditures.py +1 -1
  654. lsms_library/countries/Uganda/2015-16/_/plots.py +1 -1
  655. lsms_library/countries/Uganda/2015-16/_/shocks.py +10 -10
  656. lsms_library/countries/Uganda/2018-19/Data/unps_geovars_2018_19.dta.dvc +5 -0
  657. lsms_library/countries/Uganda/2018-19/_/assets.py +1 -1
  658. lsms_library/countries/Uganda/2018-19/_/data_info.yml +30 -1
  659. lsms_library/countries/Uganda/2018-19/_/earnings.py +1 -1
  660. lsms_library/countries/Uganda/2018-19/_/education_expenses.py +1 -1
  661. lsms_library/countries/Uganda/2018-19/_/enterprise_income.py +1 -1
  662. lsms_library/countries/Uganda/2018-19/_/plots.py +1 -1
  663. lsms_library/countries/Uganda/2018-19/_/shocks.py +8 -8
  664. lsms_library/countries/Uganda/2019-20/_/assets.py +1 -1
  665. lsms_library/countries/Uganda/2019-20/_/data_info.yml +38 -1
  666. lsms_library/countries/Uganda/2019-20/_/earnings.py +1 -1
  667. lsms_library/countries/Uganda/2019-20/_/education_expenses.py +1 -1
  668. lsms_library/countries/Uganda/2019-20/_/enterprise_income.py +1 -1
  669. lsms_library/countries/Uganda/2019-20/_/plots.py +1 -1
  670. lsms_library/countries/Uganda/2019-20/_/shocks.py +7 -7
  671. lsms_library/countries/Uganda/TODO +33 -0
  672. lsms_library/countries/Uganda/_/CONTENTS.org +140 -0
  673. lsms_library/countries/Uganda/_/Makefile +23 -24
  674. lsms_library/countries/Uganda/_/assets.py +5 -5
  675. lsms_library/countries/Uganda/_/categorical_mapping.org +70 -0
  676. lsms_library/countries/Uganda/_/data_scheme.yml +53 -12
  677. lsms_library/countries/Uganda/_/earnings.py +4 -10
  678. lsms_library/countries/Uganda/_/enterprise_income.py +5 -11
  679. lsms_library/countries/Uganda/_/fct_addition.py +1 -1
  680. lsms_library/countries/Uganda/_/food_acquired.py +2 -7
  681. lsms_library/countries/Uganda/_/food_prices_quantities_and_expenditures.py +15 -9
  682. lsms_library/countries/Uganda/_/interview_date.py +3 -11
  683. lsms_library/countries/Uganda/_/nonfood_expenditures.py +6 -7
  684. lsms_library/countries/Uganda/_/nutrition.py +1 -1
  685. lsms_library/countries/Uganda/_/regions_are_markets.py +2 -2
  686. lsms_library/countries/Uganda/_/shocks.py +2 -10
  687. lsms_library/countries/Uganda/_/uganda.py +112 -100
  688. lsms_library/countries/Uganda/dvc.yaml +1 -0
  689. lsms_library/countries/dvc.yaml +1 -0
  690. lsms_library/country.py +2115 -317
  691. lsms_library/data_access.py +1233 -0
  692. lsms_library/data_info.yml +102 -6
  693. lsms_library/demands.py +54 -14
  694. lsms_library/diagnostics.py +1447 -0
  695. lsms_library/dvc_permissions.py +73 -17
  696. lsms_library/feature.py +149 -0
  697. lsms_library/local_tools.py +555 -208
  698. lsms_library/paths.py +138 -0
  699. lsms_library/transformations.py +263 -3
  700. lsms_library/util/__init__.py +15 -0
  701. lsms_library/util/generate_dvc_stages.py +300 -0
  702. lsms_library/util/geo_audit.py +611 -0
  703. lsms_library/util/run_stage.py +126 -0
  704. lsms_library/yaml_utils.py +54 -0
  705. lsms_library-0.7.0.dist-info/METADATA +172 -0
  706. {lsms_library-0.2.9.dev0.dist-info → lsms_library-0.7.0.dist-info}/RECORD +817 -516
  707. {lsms_library-0.2.9.dev0.dist-info → lsms_library-0.7.0.dist-info}/WHEEL +1 -1
  708. lsms_library-0.7.0.dist-info/entry_points.txt +3 -0
  709. lsms_library/categorical_mapping/spelling.yml +0 -2
  710. lsms_library/contributing.org +0 -290
  711. lsms_library/countries/Afghanistan/2016-17/_/household_characteristics.py +0 -26
  712. lsms_library/countries/Afghanistan/_/household_characteristics.py +0 -12
  713. lsms_library/countries/Azerbaijan/1995/Documentation /abstracte.pdf +0 -0
  714. lsms_library/countries/Azerbaijan/1995/Documentation /abstractr.pdf +0 -0
  715. lsms_library/countries/Azerbaijan/1995/Documentation /ppabse.pdf +0 -0
  716. lsms_library/countries/Azerbaijan/1995/Documentation /ppabsr.pdf +0 -28214
  717. lsms_library/countries/Azerbaijan/1995/Documentation /queshhe.pdf +0 -0
  718. lsms_library/countries/Azerbaijan/1995/Documentation /quespope.pdf +0 -0
  719. lsms_library/countries/Bulgaria/1995/Documentation/BG95SUM.LOG +0 -8834
  720. lsms_library/countries/Burkina_Faso/2014/_/household_characteristics.py +0 -54
  721. lsms_library/countries/Burkina_Faso/2014/_/other_features.py +0 -23
  722. lsms_library/countries/Burkina_Faso/2018-19/_/household_characteristics.py +0 -47
  723. lsms_library/countries/Burkina_Faso/2018-19/_/other_features.py +0 -26
  724. lsms_library/countries/Burkina_Faso/2021-22/_/household_characteristics.py +0 -46
  725. lsms_library/countries/Burkina_Faso/2021-22/_/other_features.py +0 -27
  726. lsms_library/countries/Burkina_Faso/_/household_characteristics.py +0 -16
  727. lsms_library/countries/Burkina_Faso/_/other_features.py +0 -19
  728. lsms_library/countries/Cambodia/2019-20/_/household_characteristics.py +0 -27
  729. lsms_library/countries/Cambodia/2019-20/_/other_features.py +0 -22
  730. lsms_library/countries/Cambodia/_/household_characteristics.py +0 -12
  731. lsms_library/countries/Cambodia/_/other_features.py +0 -20
  732. lsms_library/countries/CotedIvoire/1985-86/_/household_characteristics.py +0 -22
  733. lsms_library/countries/CotedIvoire/1986-87/_/household_characteristics.py +0 -24
  734. lsms_library/countries/CotedIvoire/1987-88/_/household_characteristics.py +0 -24
  735. lsms_library/countries/CotedIvoire/1988-89/_/household_characteristics.py +0 -24
  736. lsms_library/countries/CotedIvoire/2018-19/_/household_characteristics.py +0 -86
  737. lsms_library/countries/Ethiopia/2011-12/_/household_characteristics.py +0 -23
  738. lsms_library/countries/Ethiopia/2011-12/_/other_features.py +0 -31
  739. lsms_library/countries/Ethiopia/2013-14/_/household_characteristics.py +0 -23
  740. lsms_library/countries/Ethiopia/2013-14/_/other_features.py +0 -31
  741. lsms_library/countries/Ethiopia/2015-16/Documentation/SOURCE +0 -3
  742. lsms_library/countries/Ethiopia/2015-16/_/household_characteristics.py +0 -23
  743. lsms_library/countries/Ethiopia/2015-16/_/other_features.py +0 -31
  744. lsms_library/countries/Ethiopia/2018-19/_/household_characteristics.py +0 -24
  745. lsms_library/countries/Ethiopia/2018-19/_/other_features.py +0 -31
  746. lsms_library/countries/Ethiopia/_/household_characteristics.py +0 -50
  747. lsms_library/countries/Ethiopia/_/other_features.py +0 -66
  748. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Aggregat.doc +0 -0
  749. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3DEOMAN.DOC +0 -0
  750. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3INTMAN.DOC +0 -0
  751. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartA.doc +0 -0
  752. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartB.doc +0 -0
  753. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPrice.doc +0 -0
  754. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3REPORT.DOC +0 -0
  755. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3SUPMAN.DOC +0 -0
  756. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3USERSG.DOC +0 -0
  757. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3qcomm.doc +0 -0
  758. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Povprof.doc +0 -0
  759. lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/overview_glss3.doc +0 -0
  760. lsms_library/countries/GhanaLSS/2012-13/Documentation/Notes on how glss6 compares with other glss.docx +0 -0
  761. lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7 SECTION 10.docx +0 -0
  762. lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7_Community Quest.docx +0 -0
  763. lsms_library/countries/GhanaLSS/2016-17/Documentation/COVER PAGE _PRICE.docx +0 -0
  764. lsms_library/countries/GhanaLSS/2016-17/Documentation/DIARY.doc +0 -0
  765. lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7 Final Manual.docx +0 -0
  766. lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE A_30_9_16_for print.docx +0 -0
  767. lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE B _14_10_16.docx +0 -0
  768. lsms_library/countries/GhanaLSS/2016-17/Documentation/GPS Module 13_28_4_17.docx +0 -0
  769. lsms_library/countries/GhanaLSS/2016-17/Documentation/Supervisors' manual_GLSS7.doc +0 -0
  770. lsms_library/countries/GhanaLSS/_/household_characteristics.py +0 -51
  771. lsms_library/countries/GhanaLSS/_/other_features.py +0 -54
  772. lsms_library/countries/GhanaSPS/2009-10/_/household_characteristics.py +0 -25
  773. lsms_library/countries/GhanaSPS/2009-10/_/other_features.py +0 -27
  774. lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Community Survey_WAVE II.docx +0 -0
  775. lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part A_WAVE II.docx +0 -0
  776. lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part B_WAVE II.docx +0 -0
  777. lsms_library/countries/GhanaSPS/2013-14/_/household_characteristics.py +0 -24
  778. lsms_library/countries/GhanaSPS/2013-14/_/other_features.py +0 -31
  779. lsms_library/countries/GhanaSPS/2017-18/Documentation/Questionnaire/HH_Questionnaire_23_10.docx +0 -0
  780. lsms_library/countries/GhanaSPS/2017-18/_/household_characteristics.py +0 -24
  781. lsms_library/countries/GhanaSPS/2017-18/_/other_features.py +0 -28
  782. lsms_library/countries/GhanaSPS/_/household_characteristics.py +0 -51
  783. lsms_library/countries/GhanaSPS/_/other_features.py +0 -50
  784. lsms_library/countries/Guatemala/2000/_/household_characteristics.py +0 -29
  785. lsms_library/countries/Guatemala/2000/_/other_features.py +0 -35
  786. lsms_library/countries/Guatemala/_/household_characteristics.py +0 -26
  787. lsms_library/countries/Guatemala/_/other_features.py +0 -17
  788. lsms_library/countries/Malawi/2004-05/_/household_characteristics.py +0 -26
  789. lsms_library/countries/Malawi/2004-05/_/other_features.py +0 -18
  790. lsms_library/countries/Malawi/2010-11/_/household_characteristics.py +0 -19
  791. lsms_library/countries/Malawi/2010-11/_/other_features.py +0 -20
  792. lsms_library/countries/Malawi/2013-14/_/household_characteristics.py +0 -19
  793. lsms_library/countries/Malawi/2013-14/_/other_features.py +0 -23
  794. lsms_library/countries/Malawi/2016-17/_/household_characteristics.py +0 -20
  795. lsms_library/countries/Malawi/2016-17/_/other_features.py +0 -28
  796. lsms_library/countries/Malawi/2019-20/_/household_characteristics.py +0 -20
  797. lsms_library/countries/Malawi/2019-20/_/other_features.py +0 -29
  798. lsms_library/countries/Malawi/_/household_characteristics.py +0 -24
  799. lsms_library/countries/Malawi/_/other_features.py +0 -17
  800. lsms_library/countries/Niger/2018-19/_/household_characteristics.py +0 -40
  801. lsms_library/countries/Nigeria/2010-11/_/food_expenditures.py +0 -185
  802. lsms_library/countries/Nigeria/2012-13/_/food_expenditures.py +0 -167
  803. lsms_library/countries/Nigeria/2015-16/_/food_expenditures.py +0 -168
  804. lsms_library/countries/Nigeria/2018-19/_/food_expenditures.py +0 -176
  805. lsms_library/countries/Nigeria/_/food_expenditures.py +0 -24
  806. lsms_library/countries/Nigeria/_/food_items.json +0 -1
  807. lsms_library/countries/Nigeria/_/food_items.org +0 -420
  808. lsms_library/countries/Nigeria/_/food_items0.org +0 -138
  809. lsms_library/countries/Nigeria/_/household_characteristics.py +0 -11
  810. lsms_library/countries/Panama/1997/_/household_characteristics.py +0 -35
  811. lsms_library/countries/Panama/1997/_/other_features.py +0 -26
  812. lsms_library/countries/Panama/2003/_/household_characteristics.py +0 -36
  813. lsms_library/countries/Panama/2003/_/other_features.py +0 -27
  814. lsms_library/countries/Panama/2008/_/household_characteristics.py +0 -36
  815. lsms_library/countries/Panama/2008/_/other_features.py +0 -30
  816. lsms_library/countries/Panama/_/household_characteristics.py +0 -22
  817. lsms_library/countries/Panama/_/other_features.py +0 -22
  818. lsms_library/countries/Senegal/2018-19/_/household_characteristics.py +0 -42
  819. lsms_library/countries/Senegal/2018-19/_/other_features.py +0 -30
  820. lsms_library/countries/Senegal/_/household_characteristics.py +0 -25
  821. lsms_library/countries/Senegal/_/other_features.py +0 -17
  822. lsms_library/countries/Serbia/2007/_/household_characteristics.py +0 -28
  823. lsms_library/countries/Serbia/2007/_/other_features.py +0 -24
  824. lsms_library/countries/Serbia/_/household_characteristics.py +0 -24
  825. lsms_library/countries/Serbia/_/other_features.py +0 -20
  826. lsms_library/countries/Tanzania/2008-15/_/household_characteristics.py +0 -58
  827. lsms_library/countries/Tanzania/2008-15/_/other_features.py +0 -27
  828. lsms_library/countries/Tanzania/2019-20/Documentation/TZA_2019_NPS-SDD_v06_M.xml +0 -87449
  829. lsms_library/countries/Tanzania/2019-20/_/household_characteristics.py +0 -32
  830. lsms_library/countries/Tanzania/2019-20/_/other_features.py +0 -40
  831. lsms_library/countries/Tanzania/2020-21/_/household_characteristics.py +0 -31
  832. lsms_library/countries/Tanzania/2020-21/_/other_features.py +0 -25
  833. lsms_library/countries/Tanzania/_/household_characteristics.py +0 -48
  834. lsms_library/countries/Tanzania/_/other_features.py +0 -34
  835. lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/TZA_2004_KHDS_v01_M.xml +0 -83466
  836. lsms_library/countries/Togo/2018/_/household_characteristics.py +0 -50
  837. lsms_library/countries/Uganda/2005-06/_/household_characteristics.py +0 -20
  838. lsms_library/countries/Uganda/2005-06/_/housing.py +0 -29
  839. lsms_library/countries/Uganda/2005-06/_/other_features.py +0 -37
  840. lsms_library/countries/Uganda/2009-10/_/household_characteristics.py +0 -17
  841. lsms_library/countries/Uganda/2009-10/_/housing.py +0 -31
  842. lsms_library/countries/Uganda/2009-10/_/other_features.py +0 -36
  843. lsms_library/countries/Uganda/2010-11/_/household_characteristics.py +0 -17
  844. lsms_library/countries/Uganda/2010-11/_/housing.py +0 -32
  845. lsms_library/countries/Uganda/2010-11/_/other_features.py +0 -36
  846. lsms_library/countries/Uganda/2011-12/_/household_characteristics.py +0 -17
  847. lsms_library/countries/Uganda/2011-12/_/housing.py +0 -31
  848. lsms_library/countries/Uganda/2011-12/_/other_features.py +0 -36
  849. lsms_library/countries/Uganda/2013-14/_/household_characteristics.py +0 -17
  850. lsms_library/countries/Uganda/2013-14/_/housing.py +0 -31
  851. lsms_library/countries/Uganda/2013-14/_/other_features.py +0 -37
  852. lsms_library/countries/Uganda/2015-16/_/household_characteristics.py +0 -19
  853. lsms_library/countries/Uganda/2015-16/_/housing.py +0 -33
  854. lsms_library/countries/Uganda/2015-16/_/other_features.py +0 -35
  855. lsms_library/countries/Uganda/2018-19/_/household_characteristics.py +0 -23
  856. lsms_library/countries/Uganda/2018-19/_/housing.py +0 -32
  857. lsms_library/countries/Uganda/2018-19/_/other_features.py +0 -31
  858. lsms_library/countries/Uganda/2019-20/_/household_characteristics.py +0 -20
  859. lsms_library/countries/Uganda/2019-20/_/housing.py +0 -31
  860. lsms_library/countries/Uganda/2019-20/_/other_features.py +0 -36
  861. lsms_library/countries/Uganda/_/household_characteristics.py +0 -39
  862. lsms_library/countries/Uganda/_/housing.py +0 -36
  863. lsms_library/countries/Uganda/_/other_features.py +0 -51
  864. lsms_library-0.2.9.dev0.dist-info/METADATA +0 -138
  865. /lsms_library/countries/Albania/2008/Documentation/{LICENSE → LICENSE.org} +0 -0
  866. /lsms_library/countries/Albania/2012/Documentation/{LICENSE → LICENSE.org} +0 -0
  867. /lsms_library/countries/Azerbaijan/1995/{Documentation /LICENSE .org → Documentation/LICENSE.org} +0 -0
  868. /lsms_library/countries/Azerbaijan/1995/{Documentation → Documentation}/SOURCE.org +0 -0
  869. /lsms_library/countries/Burkina_Faso/2014/Documentation/{LICENSE → LICENSE.org} +0 -0
  870. /lsms_library/countries/Burkina_Faso/2014/Documentation/{SOURCE → SOURCE.org} +0 -0
  871. /lsms_library/countries/Burkina_Faso/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
  872. /lsms_library/countries/Burkina_Faso/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
  873. /lsms_library/countries/Burkina_Faso/2021-22/Documentation/{LICENSE → LICENSE.org} +0 -0
  874. /lsms_library/countries/Burkina_Faso/2021-22/Documentation/{SOURCE → SOURCE.org} +0 -0
  875. /lsms_library/countries/Cambodia/2019-20/Documentation/{LICENSE → LICENSE.org} +0 -0
  876. /lsms_library/countries/Cambodia/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
  877. /lsms_library/countries/China/1995-97/Documentation/{LICENSE .org → LICENSE.org} +0 -0
  878. /lsms_library/countries/CotedIvoire/1985-86/Documentation/{LICENSE → LICENSE.org} +0 -0
  879. /lsms_library/countries/CotedIvoire/1985-86/Documentation/{SOURCE → SOURCE.org} +0 -0
  880. /lsms_library/countries/CotedIvoire/1986-87/Documentation/{LICENSE → LICENSE.org} +0 -0
  881. /lsms_library/countries/CotedIvoire/1986-87/Documentation/{SOURCE → SOURCE.org} +0 -0
  882. /lsms_library/countries/CotedIvoire/1987-88/Documentation/{LICENSE → LICENSE.org} +0 -0
  883. /lsms_library/countries/CotedIvoire/1987-88/Documentation/{SOURCE → SOURCE.org} +0 -0
  884. /lsms_library/countries/CotedIvoire/1988-89/Documentation/{LICENSE → LICENSE.org} +0 -0
  885. /lsms_library/countries/CotedIvoire/1988-89/Documentation/{SOURCE → SOURCE.org} +0 -0
  886. /lsms_library/countries/CotedIvoire/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
  887. /lsms_library/countries/CotedIvoire/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
  888. /lsms_library/countries/Ethiopia/2011-12/Documentation/{SOURCE → SOURCE.org} +0 -0
  889. /lsms_library/countries/Ethiopia/2013-14/Documentation/{SOURCE → SOURCE.org} +0 -0
  890. /lsms_library/countries/Ethiopia/2015-16/Documentation/{LICENSE → LICENSE.org} +0 -0
  891. /lsms_library/countries/Ethiopia/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
  892. /lsms_library/countries/Ethiopia/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
  893. /lsms_library/countries/GhanaLSS/1987-88/Documentation/{LICENSE → LICENSE.org} +0 -0
  894. /lsms_library/countries/GhanaLSS/1987-88/Documentation/{SOURCE → SOURCE.org} +0 -0
  895. /lsms_library/countries/GhanaLSS/1988-89/Documentation/{LICENSE → LICENSE.org} +0 -0
  896. /lsms_library/countries/GhanaLSS/1988-89/Documentation/{SOURCE → SOURCE.org} +0 -0
  897. /lsms_library/countries/GhanaLSS/1991-92/Documentation/{LICENSE → LICENSE.org} +0 -0
  898. /lsms_library/countries/GhanaLSS/1991-92/Documentation/{SOURCE → SOURCE.org} +0 -0
  899. /lsms_library/countries/GhanaLSS/1998-99/Documentation/{LICENSE → LICENSE.org} +0 -0
  900. /lsms_library/countries/GhanaLSS/1998-99/Documentation/{SOURCE → SOURCE.org} +0 -0
  901. /lsms_library/countries/GhanaLSS/2005-06/Documentation/{LICENSE → LICENSE.org} +0 -0
  902. /lsms_library/countries/GhanaLSS/2005-06/Documentation/{SOURCE → SOURCE.org} +0 -0
  903. /lsms_library/countries/GhanaLSS/2012-13/Documentation/{LICENSE → LICENSE.org} +0 -0
  904. /lsms_library/countries/GhanaLSS/2012-13/Documentation/{SOURCE → SOURCE.org} +0 -0
  905. /lsms_library/countries/GhanaLSS/2016-17/Documentation/{LICENSE → LICENSE.org} +0 -0
  906. /lsms_library/countries/GhanaLSS/2016-17/Documentation/{SOURCE → SOURCE.org} +0 -0
  907. /lsms_library/countries/GhanaSPS/2009-10/Documentation/{LICENSE → LICENSE.org} +0 -0
  908. /lsms_library/countries/GhanaSPS/2009-10/Documentation/{SOURCE → SOURCE.org} +0 -0
  909. /lsms_library/countries/Liberia/2018-19/Documentation/{LICENSE .org → LICENSE.org} +0 -0
  910. /lsms_library/countries/Liberia/2018-19/Documentation/{Reports .org → Reports.org} +0 -0
  911. /lsms_library/countries/Malawi/2004-05/Documentation/{LICENSE → LICENSE.org} +0 -0
  912. /lsms_library/countries/Malawi/2004-05/Documentation/{SOURCE → SOURCE.org} +0 -0
  913. /lsms_library/countries/Malawi/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
  914. /lsms_library/countries/Malawi/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
  915. /lsms_library/countries/Malawi/2013-14/Documentation/{LICENSE → LICENSE.org} +0 -0
  916. /lsms_library/countries/Malawi/2013-14/Documentation/{SOURCE → SOURCE.org} +0 -0
  917. /lsms_library/countries/Malawi/2016-17/Documentation/{LICENSE → LICENSE.org} +0 -0
  918. /lsms_library/countries/Malawi/2016-17/Documentation/{SOURCE → SOURCE.org} +0 -0
  919. /lsms_library/countries/Malawi/2019-20/Documentation/{LICENSE → LICENSE.org} +0 -0
  920. /lsms_library/countries/Malawi/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
  921. /lsms_library/countries/Mali/2014-15/Documentation/{LICENSE → LICENSE.org} +0 -0
  922. /lsms_library/countries/Mali/2014-15/Documentation/{SOURCE → SOURCE.org} +0 -0
  923. /lsms_library/countries/Mali/2017-18/Documentation/{LICENSE → LICENSE.org} +0 -0
  924. /lsms_library/countries/Mali/2017-18/Documentation/{SOURCE → SOURCE.org} +0 -0
  925. /lsms_library/countries/Mali/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
  926. /lsms_library/countries/Mali/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
  927. /lsms_library/countries/Mali/2021-22/Documentation/{LICENSE → LICENSE.org} +0 -0
  928. /lsms_library/countries/Mali/2021-22/Documentation/{SOURCE → SOURCE.org} +0 -0
  929. /lsms_library/countries/Nepal/1995-96/Documentation/{SOURCE → SOURCE.org} +0 -0
  930. /lsms_library/countries/Nepal/2003-04/Documentation/{Source .org → Source.org} +0 -0
  931. /lsms_library/countries/Niger/2014-15/Documentation/{LICENSE → LICENSE.org} +0 -0
  932. /lsms_library/countries/Niger/2014-15/Documentation/{SOURCE → SOURCE.org} +0 -0
  933. /lsms_library/countries/Niger/2018-19/Documentation/{LICENSE .org → LICENSE.org} +0 -0
  934. /lsms_library/countries/Nigeria/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
  935. /lsms_library/countries/Nigeria/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
  936. /lsms_library/countries/Nigeria/2012-13/Documentation/{LICENSE → LICENSE.org} +0 -0
  937. /lsms_library/countries/Nigeria/2012-13/Documentation/{SOURCE → SOURCE.org} +0 -0
  938. /lsms_library/countries/Nigeria/2015-16/Documentation/{LICENSE → LICENSE.org} +0 -0
  939. /lsms_library/countries/Nigeria/2015-16/Documentation/{SOURCE → SOURCE.org} +0 -0
  940. /lsms_library/countries/Nigeria/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
  941. /lsms_library/countries/Nigeria/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
  942. /lsms_library/countries/Nigeria/2023-24/Documentation/{LICENSE → LICENSE.org} +0 -0
  943. /lsms_library/countries/Nigeria/2023-24/Documentation/{SOURCE → SOURCE.org} +0 -0
  944. /lsms_library/countries/Rwanda/2000-01/Documentation/{SOURCE → SOURCE.org} +0 -0
  945. /lsms_library/countries/Rwanda/2005-06/Documentation/{SOURCE → SOURCE.org} +0 -0
  946. /lsms_library/countries/Tanzania/2008-15/Documentation/{LICENSE → LICENSE.org} +0 -0
  947. /lsms_library/countries/Tanzania/2008-15/Documentation/{SOURCE → SOURCE.org} +0 -0
  948. /lsms_library/countries/Tanzania/2019-20/Documentation/{LICENSE → LICENSE.org} +0 -0
  949. /lsms_library/countries/Tanzania/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
  950. /lsms_library/countries/Tanzania/2020-21/Documentation/{LICENSE → LICENSE.org} +0 -0
  951. /lsms_library/countries/Tanzania/2020-21/Documentation/{SOURCE → SOURCE.org} +0 -0
  952. /lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/{LICENSE → LICENSE.org} +0 -0
  953. /lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/{SOURCE → SOURCE.org} +0 -0
  954. /lsms_library/countries/Tanzania_Kegera/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
  955. /lsms_library/countries/Tanzania_Kegera/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
  956. /lsms_library/countries/Togo/2018/Documentation/{LICENSE → LICENSE.org} +0 -0
  957. /lsms_library/countries/Togo/2018/Documentation/{SOURCE → SOURCE.org} +0 -0
  958. /lsms_library/countries/Uganda/2005-06/Documentation/{LICENSE → LICENSE.org} +0 -0
  959. /lsms_library/countries/Uganda/2005-06/Documentation/{SOURCE → SOURCE.org} +0 -0
  960. /lsms_library/countries/Uganda/2009-10/Documentation/{LICENSE → LICENSE.org} +0 -0
  961. /lsms_library/countries/Uganda/2009-10/Documentation/{SOURCE → SOURCE.org} +0 -0
  962. /lsms_library/countries/Uganda/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
  963. /lsms_library/countries/Uganda/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
  964. /lsms_library/countries/Uganda/2011-12/Documentation/{LICENSE → LICENSE.org} +0 -0
  965. /lsms_library/countries/Uganda/2011-12/Documentation/{SOURCE → SOURCE.org} +0 -0
  966. /lsms_library/countries/Uganda/2013-14/Documentation/{LICENSE → LICENSE.org} +0 -0
  967. /lsms_library/countries/Uganda/2013-14/Documentation/{SOURCE → SOURCE.org} +0 -0
  968. /lsms_library/countries/Uganda/2015-16/Documentation/{LICENSE → LICENSE.org} +0 -0
  969. /lsms_library/countries/Uganda/2015-16/Documentation/{SOURCE → SOURCE.org} +0 -0
  970. /lsms_library/countries/Uganda/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
  971. /lsms_library/countries/Uganda/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
  972. /lsms_library/countries/Uganda/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
  973. {lsms_library-0.2.9.dev0.dist-info → lsms_library-0.7.0.dist-info/licenses}/LICENSE.txt +0 -0
lsms_library/ISSUES.md ADDED
@@ -0,0 +1,9 @@
1
+ # Open Issues
2
+
3
+ Items that need attention. Resolved items are removed; use `git log` for history.
4
+ Actionable items should also be filed on GitHub (`gh issue list --repo ligon/LSMS_Library`).
5
+ ## 2026-04-12 14:02:27Z Nepal – sample
6
+
7
+ - Waves: 1995-96, 2003-04, 2010-11
8
+ - Error: `PathMissingError: The path '/home/ligon/Projects/LSMS_Library/lsms_library/countries/Nepal/1995-96/Data/../Data/c1_nlss_public.dta' does not exist in the target repository '/home/ligon/Projects/LSMS_Library/lsms_library/countries/Nepal/1995-96/Data/../Data/c1_nlss_public.dta' neither as a DVC output nor as a Git-tracked file.`
9
+
lsms_library/Makefile CHANGED
@@ -4,21 +4,42 @@
4
4
 
5
5
  .SILENT: help
6
6
 
7
+ empty :=
8
+ space := $(empty) $(empty)
9
+
10
+ PYTHON ?= python3
11
+ DVC ?= $(PYTHON) -m dvc
12
+ format ?= parquet
13
+
14
+ slug = $(shell printf '%s' "$(1)" | tr '[:upper:]' '[:lower:]' | tr ' -' '__')
15
+ DEFAULT_WAVE_RAW := $(if $(strip $(wave)),$(firstword $(wave)),all_waves)
16
+ DEFAULT_WAVE := $(subst $(space),_,$(strip $(DEFAULT_WAVE_RAW)))
17
+ OUT_FILE ?= countries/build/$(country)/$(DEFAULT_WAVE)/$(table).$(format)
18
+ stage_name = $(call slug,$(country))_$(call slug,$(DEFAULT_WAVE_RAW))_$(call slug,$(table))
19
+
20
+
7
21
  COUNTRIES := $(shell ls .. | grep -e ^[A-Z] | grep / | sed -e 's/\//,/g')
8
22
 
9
23
  help:
10
24
  echo "USAGE:"
11
- echo "Either <test> or <build> datasets or estimate <demands>"
25
+ echo "Either <test> or <build> datasets, <materialize>/<persist> tables, <register> stages, or estimate <demands>"
12
26
  echo "for a particular country using, e.g.,"
13
27
  echo " make test country=Malawi"
14
28
  echo "or"
15
29
  echo " make build country=Malawi"
16
30
  echo "or"
17
- echo " make demands country=Malawi"
31
+ echo " make demands country=Malawi market=Region"
32
+ echo "or"
33
+ echo " make materialize country=Malawi wave=2019-20 table=household_roster"
34
+ echo "or"
35
+ echo " make persist country=Malawi wave=2019-20 table=household_roster"
36
+ echo "or"
37
+ echo " make register country=Uganda wave=2023-24 table=household_roster"
18
38
  echo ""
19
39
  echo "where country is one of:"
20
40
  echo $(COUNTRIES)
21
41
 
42
+
22
43
  build:
23
44
  echo $(country)
24
45
  +make -C ../$(country)/_
@@ -26,8 +47,26 @@ build:
26
47
  test:
27
48
  ./harmony.py $(country)
28
49
 
29
- demands: build test
30
- ./demands.py $(country)
50
+ materialize:
51
+ $(PYTHON) -m lsms_library.cli materialize \
52
+ $(if $(strip $(wave)),$(foreach w,$(wave),--wave $(w) ),$(if $(strip $(all_waves)),--all-waves ,))\
53
+ --country $(country) \
54
+ --table $(table) \
55
+ --format $(format) \
56
+ --out $(OUT_FILE)
57
+
58
+ register:
59
+ $(PYTHON) -m lsms_library.cli register \
60
+ --country $(country) \
61
+ --wave $(wave) \
62
+ --table $(table) \
63
+ --format $(format)
64
+
65
+ persist:
66
+ cd countries && $(DVC) repro materialize@$(stage_name)
67
+
68
+ demands:
69
+ $(PYTHON) -m lsms_library.demands $(country) $(if $(market),--market $(market),)
31
70
 
32
71
  clean:
33
72
  +make -C ../$(country)/_ clean
lsms_library/__init__.py CHANGED
@@ -1,6 +1,184 @@
1
+ """LSMS Library: a harmonized interface to Living Standards Measurement Study data.
2
+
3
+ The library provides a uniform API across 40+ LSMS-ISA and related
4
+ household surveys from the World Bank Microdata Library. Its design
5
+ principle is to harmonize the *interface*, not the data: surveys differ
6
+ in structure, and the library preserves survey-specific detail while
7
+ offering a common way to read it.
8
+
9
+ Typical usage
10
+ -------------
11
+ Instantiate a :class:`Country` and call its table methods as attributes.
12
+ Table names (``food_acquired``, ``household_roster``, ``shocks``, ...)
13
+ come from the country's ``data_scheme.yml``.
14
+
15
+ .. code-block:: python
16
+
17
+ import lsms_library as ll
18
+
19
+ uga = ll.Country('Uganda')
20
+ uga.waves # ['2005-06', '2009-10', ...]
21
+ uga.data_scheme # ['household_roster', 'food_acquired', ...]
22
+
23
+ roster = uga.household_roster() # harmonized DataFrame across waves
24
+ food = uga.food_expenditures() # derived from food_acquired
25
+ chars = uga.household_characteristics() # derived from household_roster
26
+
27
+ :class:`Feature` assembles the same table across every country that
28
+ declares it, with a ``country`` index level prepended:
29
+
30
+ .. code-block:: python
31
+
32
+ df = ll.Feature('household_roster')() # every country
33
+ df = ll.Feature('shocks')(['Ethiopia', 'Niger']) # subset
34
+
35
+ Returned DataFrames are indexed by some subset of ``(country, t, v, i,
36
+ pid, j)`` — wave (``t``), cluster (``v``), household (``i``), person
37
+ (``pid``), item (``j``) — depending on the table.
38
+
39
+ Public API
40
+ ----------
41
+ - :class:`Country` — top-level per-country interface. Exposes ``waves``,
42
+ ``data_scheme``, and one method per table in the scheme. Derived
43
+ tables (``household_characteristics``, ``food_expenditures``,
44
+ ``food_prices``, ``food_quantities``) are dispatched via
45
+ ``__getattr__`` without needing to be in ``data_scheme.yml``.
46
+ - :class:`Wave` — single-wave view of a country, used internally by
47
+ :class:`Country` but occasionally handy for debugging.
48
+ - :class:`Feature` — cross-country aggregator for a given table name.
49
+ - ``tools`` (alias for :mod:`lsms_library.local_tools`) — ``get_dataframe``
50
+ for reading ``.dta``/``.csv``/``.parquet`` with local → DVC → WB NADA
51
+ fallback, ``to_parquet`` for writing caches under ``data_root()``, and
52
+ the ``df_data_grabber`` helper used by wave-level scripts.
53
+ - :func:`authenticate` — interactive DVC/S3 credential unlock. Usually
54
+ runs automatically on import when a World Bank Microdata API key is
55
+ available.
56
+ - :mod:`lsms_library.transformations` — derivation helpers for
57
+ roster-to-characteristics and food-to-expenditures.
58
+
59
+ Data access and caching
60
+ -----------------------
61
+ Reads use a fallback chain: local file on disk → DVC filesystem → World
62
+ Bank NADA download. Parquet caches are written under ``data_root()``,
63
+ which defaults to ``~/.local/share/lsms_library/{Country}/`` and can be
64
+ overridden via ``LSMS_DATA_DIR`` or the ``data_dir`` key in
65
+ ``~/.config/lsms_library/config.yml``.
66
+
67
+ As of v0.7.0, :meth:`Country` methods check the parquet cache before
68
+ consulting DVC, giving 10–17× cross-process speedups. The cache has no
69
+ automatic staleness check — set ``LSMS_NO_CACHE=1`` or run
70
+ ``lsms-library cache clear --country {Country}`` after editing source
71
+ configs or scripts.
72
+
73
+ Environment variables
74
+ ---------------------
75
+ - ``MICRODATA_API_KEY`` — World Bank Microdata Library API key (also
76
+ readable from ``~/.config/lsms_library/config.yml``). Required for
77
+ direct downloads; also unlocks the S3 read cache at import time.
78
+ - ``LSMS_DATA_DIR`` — override the parquet cache root.
79
+ - ``LSMS_NO_CACHE`` — disable the v0.7.0 top-of-function cache read.
80
+ - ``LSMS_BUILD_BACKEND=make`` — force rebuild from source, bypassing
81
+ both the cache and the DVC stage layer.
82
+ - ``LSMS_SKIP_AUTH`` — suppress the import-time authentication attempt.
83
+
84
+ Further reading
85
+ ---------------
86
+ - ``CLAUDE.md`` at the repository root for contributor-facing design
87
+ notes, the canonical schema (``lsms_library/data_info.yml``), and the
88
+ list of cross-cutting gotchas.
89
+ - ``.claude/skills/add-feature/`` for adding a new table to a country,
90
+ with sub-skills for ``sample``, ``shocks``, ``assets``,
91
+ ``panel-ids``, ``food-acquired``, and ``pp-ph`` (post-planting /
92
+ post-harvest countries).
93
+ - ``CONTRIBUTING.org`` for the new-wave workflow.
94
+
95
+ Data terms of use
96
+ -----------------
97
+ Underlying microdata must be obtained from the World Bank Microdata
98
+ Library (https://microdata.worldbank.org/) under their terms of use.
99
+ The library's S3 bucket is a read cache over the authoritative WB NADA
100
+ downloads, unlocked automatically when a valid API key is present.
101
+ """
102
+
103
+ from importlib.metadata import PackageNotFoundError, version
104
+
105
+ try:
106
+ __version__ = version("LSMS_Library")
107
+ except PackageNotFoundError:
108
+ __version__ = "0.0.0"
109
+
110
+ from pathlib import Path
111
+ import os
112
+ import warnings
113
+
114
+ import logging
115
+ from sys import stderr
1
116
  from . import country
2
- from . country import Country, Wave
117
+ from .country import Country, Wave
118
+ from .feature import Feature
3
119
  from . import local_tools as tools
4
- from .categorical_mapping import ai_agent
5
120
  from . import transformations
6
121
  from .dvc_permissions import authenticate
122
+ try:
123
+ from dvc.ui import ui as dvc_ui
124
+ from dvc.logger import LoggerHandler, setup as dvc_log_setup
125
+ from functools import wraps
126
+ import sys
127
+
128
+ if hasattr(dvc_ui, "rich_console"):
129
+ try:
130
+ dvc_ui.rich_console.file = stderr
131
+ except Exception:
132
+ pass
133
+ if hasattr(dvc_ui, "error_console"):
134
+ try:
135
+ dvc_ui.error_console.file = stderr
136
+ except Exception:
137
+ pass
138
+ original_init = LoggerHandler.__init__
139
+
140
+ @wraps(original_init)
141
+ def _patched_logger_handler_init(self, stream, *args, **kwargs):
142
+ if stream is sys.stdout:
143
+ stream = stderr
144
+ original_init(self, stream, *args, **kwargs)
145
+
146
+ LoggerHandler.__init__ = _patched_logger_handler_init # type: ignore[assignment]
147
+
148
+ dvc_log_setup()
149
+ for logger_name in ("dvc", "dvc_objects", "dvc_data", ""):
150
+ logger_obj = logging.getLogger(logger_name)
151
+ for handler in logger_obj.handlers:
152
+ if isinstance(handler, LoggerHandler) and getattr(handler, "stream", None) is not stderr:
153
+ handler.stream = stderr
154
+ except Exception:
155
+ # DVC optional; if missing, proceed without UI tweaks
156
+ pass
157
+
158
+ from .config import s3_creds_path as _s3_creds_path
159
+ creds_file = _s3_creds_path()
160
+
161
+ SKIP_AUTH = os.getenv("LSMS_SKIP_AUTH", "").lower() in {"1", "true", "yes"}
162
+
163
+ if not SKIP_AUTH and not creds_file.exists():
164
+ # Try non-interactive S3 unlock first. This only decrypts the local
165
+ # s3_reader_creds.gpg — no network call required. WB API key validation
166
+ # (which requires a network round-trip to microdata.worldbank.org) is
167
+ # deferred until the first actual data access via permissions() in
168
+ # data_access.py. This keeps ``import lsms_library`` fast.
169
+ try:
170
+ from .data_access import _auto_unlock_s3 as _unlock
171
+ _unlocked = _unlock()
172
+ if not _unlocked:
173
+ # Local GPG decryption failed or no .gpg file — fall back to
174
+ # interactive passphrase prompt.
175
+ raise RuntimeError("auto-unlock did not produce S3 credentials")
176
+ except Exception:
177
+ try:
178
+ authenticate()
179
+ except Exception as exc:
180
+ warnings.warn(
181
+ f"Automatic DVC authentication failed: {exc}. "
182
+ "Set LSMS_SKIP_AUTH=1 to suppress, or set "
183
+ "MICRODATA_API_KEY for non-interactive access."
184
+ )
@@ -1,4 +1,17 @@
1
- # AI Agent
1
+ """GPT-based helper for suggesting categorical harmonization mappings.
2
+
3
+ Experimental tooling that sends a DataFrame of raw survey labels to an
4
+ OpenAI chat model and asks it to propose canonical "Preferred Label"
5
+ matches. Used as a drafting aid for maintainers filling out the
6
+ ``#+NAME: harmonize_food`` and ``#+NAME: unit`` tables in a country's
7
+ ``categorical_mapping.org``. Output is always reviewed by a human before
8
+ being committed — the library itself never calls this module at runtime.
9
+
10
+ Requires the ``openai`` package and an API key (set via the ``api_key``
11
+ module-level variable or looked up from ``authinfo``). Not part of the
12
+ public API and not loaded by :mod:`lsms_library.__init__` unless
13
+ explicitly imported.
14
+ """
2
15
  import pandas as pd
3
16
  from ligonlibrary import authinfo
4
17
  import openai
@@ -1,3 +1,22 @@
1
+ """String-similarity helpers for drafting categorical mapping tables.
2
+
3
+ Lightweight NLP utilities used when bootstrapping a country's
4
+ ``categorical_mapping.org`` from raw survey labels. The main operations
5
+ are:
6
+
7
+ - :func:`regularize_string` — strip accents, lowercase, and spell-check
8
+ via TextBlob so that "Sécheresse" and "secheresse" land in the same
9
+ bucket before similarity scoring.
10
+ - :func:`preprocess` / :func:`get_label_vector` — turn a list of raw
11
+ labels into feature vectors keyed on cleaned tokens.
12
+ - :func:`get_cosine_similarity` — score two label vectors so the
13
+ maintainer can propose the highest-ranked canonical label for each
14
+ raw variant.
15
+
16
+ Like :mod:`.ai_agent`, this is a drafting aid for maintainers — the
17
+ library does not call these functions at runtime, and the output is
18
+ always reviewed by a human before being committed.
19
+ """
1
20
  import pandas as pd
2
21
  import numpy as np
3
22
  import re