LSMS_Library 0.2.9.dev0__py3-none-any.whl → 0.2.10.dev0__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.
- lsms_library/__init__.py +7 -0
- lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbh_ind_weighs.dta.dvc +5 -0
- lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhcfhh.dta.dvc +5 -0
- lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhcfind.dta.dvc +5 -0
- lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhhhpos.dta.dvc +5 -0
- lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhihh.dta.dvc +5 -0
- lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhiind.dta.dvc +5 -0
- lsms_library/countries/Bosnia-Herzegovina/2003/Data/cbhjhist.dta.dvc +5 -0
- lsms_library/countries/China/1995-97/_/data_info.yml +28 -0
- lsms_library/countries/China/_/data_scheme.yml +9 -0
- lsms_library/countries/India/1997-98/_/data_info.yml +29 -0
- lsms_library/countries/India/1997-98/_/testing.py +9 -0
- lsms_library/countries/India/_/data_scheme.yml +13 -0
- lsms_library/countries/Iraq/2006-07/_/data_info.yml +13 -0
- lsms_library/countries/Iraq/2012/_/data_info.yml +13 -0
- lsms_library/countries/Iraq/_/data_scheme.yml +8 -0
- lsms_library/countries/Kosovo/2000/_/data_info.yml +14 -0
- lsms_library/countries/Kosovo/_/data_scheme.yml +9 -0
- lsms_library/countries/Liberia/2018-19/_/data_info.yml +13 -0
- lsms_library/countries/Liberia/_/data_scheme.yml +8 -0
- lsms_library/countries/Nigeria/_/household_roster.py +0 -2
- lsms_library/countries/Serbia/2007/_/data_info.yml +13 -0
- lsms_library/countries/Serbia/_/data_scheme.yml +8 -0
- lsms_library/countries/Serbia and Montenegro/2002/_/data_info.yml +13 -0
- lsms_library/countries/Serbia and Montenegro/2003/_/data_info.yml +13 -0
- lsms_library/countries/Serbia and Montenegro/_/data_scheme.yml +8 -0
- lsms_library/countries/South Africa/1993/_/data_info.yml +34 -0
- lsms_library/countries/South Africa/_/data_scheme.yml +8 -0
- lsms_library/countries/Timor-Leste/2007-08/_/data_info.yml +13 -0
- lsms_library/countries/Timor-Leste/_/data_scheme.yml +8 -0
- lsms_library/countries/Togo/2018/_/data_info.yml +13 -0
- lsms_library/countries/Togo/_/data_scheme.yml +8 -0
- lsms_library/countries/Uganda/2005-06/_/data_info.yml +11 -0
- lsms_library/countries/Uganda/2009-10/_/data_info.yml +10 -0
- lsms_library/countries/Uganda/_/data_scheme.yml +6 -0
- lsms_library-0.2.10.dev0.dist-info/METADATA +290 -0
- {lsms_library-0.2.9.dev0.dist-info → lsms_library-0.2.10.dev0.dist-info}/RECORD +39 -10
- lsms_library/contributing.org +0 -290
- lsms_library-0.2.9.dev0.dist-info/METADATA +0 -138
- {lsms_library-0.2.9.dev0.dist-info → lsms_library-0.2.10.dev0.dist-info}/LICENSE.txt +0 -0
- {lsms_library-0.2.9.dev0.dist-info → lsms_library-0.2.10.dev0.dist-info}/WHEEL +0 -0
lsms_library/__init__.py
CHANGED
|
@@ -4,3 +4,10 @@ from . import local_tools as tools
|
|
|
4
4
|
from .categorical_mapping import ai_agent
|
|
5
5
|
from . import transformations
|
|
6
6
|
from .dvc_permissions import authenticate
|
|
7
|
+
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
gpg_path = Path(__file__).resolve().parent / 'countries' / '.dvc'
|
|
10
|
+
creds_file = gpg_path / 's3_creds'
|
|
11
|
+
if not creds_file.exists():
|
|
12
|
+
authenticate()
|
|
13
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Country: China
|
|
2
|
+
Wave: 1995-97
|
|
3
|
+
|
|
4
|
+
household_roster:
|
|
5
|
+
file:
|
|
6
|
+
- ../Data/S01A2.DTA
|
|
7
|
+
idxvars:
|
|
8
|
+
i: hid
|
|
9
|
+
pid: pid
|
|
10
|
+
myvars:
|
|
11
|
+
Sex:
|
|
12
|
+
- s01a202
|
|
13
|
+
- mapping:
|
|
14
|
+
1: Male
|
|
15
|
+
2: Female
|
|
16
|
+
Relation:
|
|
17
|
+
- s01a203
|
|
18
|
+
- mapping:
|
|
19
|
+
1: Head
|
|
20
|
+
2: Spouse
|
|
21
|
+
3: Child
|
|
22
|
+
4: Grandchild
|
|
23
|
+
5: Parent
|
|
24
|
+
6: Sibling
|
|
25
|
+
7: Son/Daughter-in-law
|
|
26
|
+
8: Other relative
|
|
27
|
+
9: Non-relative
|
|
28
|
+
Age: s01a208
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Country: India
|
|
2
|
+
Wave: 1997-98
|
|
3
|
+
|
|
4
|
+
cluster_features:
|
|
5
|
+
|
|
6
|
+
household_roster:
|
|
7
|
+
file:
|
|
8
|
+
- ../Data/SECT01A.DTA
|
|
9
|
+
idxvars:
|
|
10
|
+
i: hh
|
|
11
|
+
pid: idcode
|
|
12
|
+
myvars:
|
|
13
|
+
Sex: v01a02
|
|
14
|
+
Age: v01a04
|
|
15
|
+
Relation: v01a03
|
|
16
|
+
Highest_education: v01a05
|
|
17
|
+
employment:
|
|
18
|
+
file:
|
|
19
|
+
- ../Data/SECT02AD.DTA
|
|
20
|
+
idxvars:
|
|
21
|
+
i: hh
|
|
22
|
+
pid: idcode
|
|
23
|
+
myvars:
|
|
24
|
+
Cash_per_day: v02b02
|
|
25
|
+
Rural: v02a05b
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Country: South Africa
|
|
2
|
+
Wave: 1993
|
|
3
|
+
|
|
4
|
+
household_roster:
|
|
5
|
+
file:
|
|
6
|
+
- ../Data/M8_HROST.dta
|
|
7
|
+
idxvars:
|
|
8
|
+
i: hhid
|
|
9
|
+
pid: pcode
|
|
10
|
+
myvars:
|
|
11
|
+
Sex: gender_c
|
|
12
|
+
Age: age
|
|
13
|
+
Relation:
|
|
14
|
+
- rel_head
|
|
15
|
+
- mapping:
|
|
16
|
+
1: "Resident Head"
|
|
17
|
+
2: "Absent Head"
|
|
18
|
+
3: "Wife or husband or partner"
|
|
19
|
+
4: "Son or daughter"
|
|
20
|
+
5: "Father or mother"
|
|
21
|
+
6: "Grandchild"
|
|
22
|
+
7: "Grandparent"
|
|
23
|
+
8: "Mother- or father-in-law"
|
|
24
|
+
9: "Son- or daughter-in-law"
|
|
25
|
+
10: "Brother- or sister-in-law"
|
|
26
|
+
11: "Aunt or uncle"
|
|
27
|
+
12: "Sister or brother"
|
|
28
|
+
13: "Niece or nephew"
|
|
29
|
+
14: "Cousin"
|
|
30
|
+
15: "Great-grandparent"
|
|
31
|
+
16: "Household help (or relative of)"
|
|
32
|
+
17: "Lodger or relative of lodgers"
|
|
33
|
+
18: "Other family"
|
|
34
|
+
19: "Other non-family"
|