Skip to content

Commit

Permalink
filling out more 2010 & 2012 variables
Browse files Browse the repository at this point in the history
See #3 & #4
  • Loading branch information
wibeasley committed Oct 18, 2017
1 parent 65126d7 commit 699da7f
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 28 deletions.
2 changes: 1 addition & 1 deletion BaseAssembly/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static class Constants {
public static readonly Int32[] Gen2PassoverResponseNoNegatives = { -1, -2, -3, -4, -5 , -6, - 7 };
#endregion
#region SurveyYears
//See the class Nls.BaseAssembly.SurveyYears
//See the class Nls.BaseAssembly.ItemYears
#endregion
#region DVs
public const byte Gen2AgeMissingHasChildrenThreshold = 16;//If their last completed survey was when they were 16 or younger, assume they didn't have any biological kids yet.
Expand Down
167 changes: 149 additions & 18 deletions data-public/metadata/tables/Variable.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
22,R8497200,16,1,3,1,2004,0,1,TRUE,NA
23,T0989000,16,1,3,1,2006,0,1,TRUE,NA
24,T2210800,16,1,3,1,2008,0,1,TRUE,NA
3001,T4113200,16,1,3,1,2010,0,1,TRUE,NA
3002,T5023600,16,1,3,1,2012,0,1,TRUE,NA
26,R0000150,1,1,10,1,1979,1,1,TRUE,NA
27,R0000152,1,1,10,1,1979,2,1,TRUE,NA
28,R0000154,1,1,10,1,1979,3,1,TRUE,NA
Expand Down Expand Up @@ -117,6 +119,8 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
172,C0007052,17,2,4,2,2004,0,1,TRUE,NA
173,C0007055,17,2,4,2,2006,0,1,TRUE,NA
174,C3601100,17,2,4,2,2008,0,1,TRUE,NA
3002,,17,2,4,2,2010,0,1,TRUE,NA
3003,,17,2,4,2,2012,0,1,TRUE,NA
178,R0172500,21,1,3,1,1979,0,1,TRUE,NA
179,R0172600,20,1,3,1,1979,0,1,TRUE,NA
180,R0329200,21,1,3,1,1980,0,1,TRUE,NA
Expand Down Expand Up @@ -172,6 +176,15 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
233,T1200700,20,1,3,1,2008,0,1,TRUE,NA
234,T1200701,21,1,3,1,2008,0,1,TRUE,NA
235,T1200702,22,1,3,1,2008,0,1,TRUE,NA
3005,T2260600,20,1,3,1,2010,0,1,TRUE,CURRENT DATE (DAY)
3006,T2260601,21,1,3,1,2010,0,1,TRUE,NA
3007,T2260602,22,1,3,1,2010,0,1,TRUE,NA
3008,T3195600,20,1,3,1,2012,0,1,TRUE,NA
3009,T3195601,21,1,3,1,2012,0,1,TRUE,NA
3010,T3195602 ,22,1,3,1,2012,0,1,TRUE,NA
3011,T4181100,20,1,3,1,2014,0,1,TRUE,NA
3012,T4181101,21,1,3,1,2014,0,1,TRUE,NA
3013,T4181102,22,1,3,1,2014,0,1,TRUE,NA
236,C1230100,20,2,4,2,1994,0,1,TRUE,NA
237,C1230200,21,2,4,2,1994,0,1,TRUE,NA
239,C1230300,22,2,4,2,1994,0,1,TRUE,NA
Expand All @@ -196,6 +209,24 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
260,C3627700,20,2,4,2,2008,0,1,TRUE,NA
261,C3627701,21,2,4,2,2008,0,1,TRUE,NA
262,C3627702,22,2,4,2,2008,0,1,TRUE,NA
2242,C4006300,20,2,4,2,2010,0,1,TRUE,NA
2243,C4006301,21,2,4,2,2010,0,1,TRUE,NA
2244,C4006302,22,2,4,2,2010,0,1,TRUE,NA
3014,,20,2,4,2,2012,0,1,TRUE,NA
3015,,21,2,4,2,2012,0,1,TRUE,NA
3016,,22,2,4,2,2012,0,1,TRUE,NA
361,C0402400,22,2,4,2,1986,0,1,TRUE,NA
362,C0402500,21,2,4,2,1986,0,1,TRUE,NA
363,C0402600,20,2,4,2,1986,0,1,TRUE,NA
364,C0737000,22,2,4,2,1988,0,1,TRUE,NA
365,C0737100,21,2,4,2,1988,0,1,TRUE,NA
366,C0737200,20,2,4,2,1988,0,1,TRUE,NA
367,C0948700,22,2,4,2,1990,0,1,TRUE,NA
368,C0948800,21,2,4,2,1990,0,1,TRUE,NA
369,C0948900,20,2,4,2,1990,0,1,TRUE,NA
370,C1146600,22,2,4,2,1992,0,1,TRUE,NA
371,C1146700,21,2,4,2,1992,0,1,TRUE,NA
372,C1146800,20,2,4,2,1992,0,1,TRUE,NA
264,Y0000200,20,2,4,3,1994,0,1,TRUE,NA
265,Y0000201,21,2,4,3,1994,0,1,TRUE,NA
266,Y0000202,22,2,4,3,1994,0,1,TRUE,NA
Expand All @@ -220,6 +251,12 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
285,Y1981600,20,2,4,3,2008,0,1,TRUE,NA
286,Y1981601,21,2,4,3,2008,0,1,TRUE,NA
287,Y1981602,22,2,4,3,2008,0,1,TRUE,NA
3017,,20,2,4,3,2010,0,1,TRUE,NA
3018,,21,2,4,3,2010,0,1,TRUE,NA
3019,,22,2,4,3,2010,0,1,TRUE,NA
3020,,20,2,4,3,2012,0,1,TRUE,NA
3021,,21,2,4,3,2012,0,1,TRUE,NA
3022,,22,2,4,3,2012,0,1,TRUE,NA
290,R0410100,13,1,3,1,1981,0,1,TRUE,NA
291,R0410300,14,1,3,1,1981,0,1,TRUE,NA
292,C0008100,121,2,6,2,1984,0,1,TRUE,NA
Expand Down Expand Up @@ -268,6 +305,12 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
350,C3601700,121,2,6,2,2008,0,1,TRUE,NA
351,C3601800,122,2,6,2,2008,0,1,TRUE,NA
352,C3601900,123,2,6,2,2008,0,1,TRUE,NA
,,121,2,6,2,2010,0,1,TRUE,NA
,,122,2,6,2,2010,0,1,TRUE,NA
,,123,2,6,2,2010,0,1,TRUE,NA
,,121,2,6,2,2012,0,1,TRUE,NA
,,122,2,6,2,2012,0,1,TRUE,NA
,,123,2,6,2,2012,0,1,TRUE,NA
353,Y0003100,37,2,6,3,1994,0,0,TRUE,NA
354,Y0392800,37,2,6,3,1996,0,0,TRUE,NA
355,Y0682400,37,2,6,3,1998,0,0,TRUE,NA
Expand All @@ -276,24 +319,16 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
358,Y1456500,37,2,6,3,2004,0,0,TRUE,NA
359,Y1701600,37,2,6,3,2006,0,0,TRUE,NA
360,Y1987100,37,2,6,3,2008,0,0,TRUE,NA
361,C0402400,22,2,4,2,1986,0,1,TRUE,NA
362,C0402500,21,2,4,2,1986,0,1,TRUE,NA
363,C0402600,20,2,4,2,1986,0,1,TRUE,NA
364,C0737000,22,2,4,2,1988,0,1,TRUE,NA
365,C0737100,21,2,4,2,1988,0,1,TRUE,NA
366,C0737200,20,2,4,2,1988,0,1,TRUE,NA
367,C0948700,22,2,4,2,1990,0,1,TRUE,NA
368,C0948800,21,2,4,2,1990,0,1,TRUE,NA
369,C0948900,20,2,4,2,1990,0,1,TRUE,NA
370,C1146600,22,2,4,2,1992,0,1,TRUE,NA
371,C1146700,21,2,4,2,1992,0,1,TRUE,NA
372,C1146800,20,2,4,2,1992,0,1,TRUE,NA
,,37,2,6,3,2010,0,0,TRUE,NA
,,37,2,6,3,2012,0,0,TRUE,NA
373,Y1629500,40,2,6,3,2004,0,1,TRUE,NA
374,Y1883300,40,2,6,3,2006,0,1,TRUE,NA
375,Y2197500,40,2,6,3,2008,0,1,TRUE,NA
376,C3070500,40,2,6,2,2004,0,1,TRUE,NA
377,C3423600,40,2,6,2,2006,0,1,TRUE,NA
378,C3605900,40,2,6,2,2008,0,1,TRUE,NA
,,40,2,6,2,2010,0,1,TRUE,NA
,,40,2,6,2,2012,0,1,TRUE,NA
392,R4125101,4,1,10,1,1993,1,1,TRUE,NA
393,R4125801,4,1,10,1,1993,2,1,TRUE,NA
394,R4126501,4,1,10,1,1993,3,1,TRUE,NA
Expand Down Expand Up @@ -340,6 +375,12 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
435,T1486900,50,1,5,1,2008,1,1,TRUE,NA
436,T1487000,50,1,5,1,2008,2,1,TRUE,NA
437,T1487100,50,1,5,1,2008,3,1,TRUE,NA
,,50,1,5,1,2010,1,1,TRUE,NA
,,50,1,5,1,2010,2,1,TRUE,NA
,,50,1,5,1,2010,3,1,TRUE,NA
,,50,1,5,1,2012,1,1,TRUE,NA
,,50,1,5,1,2012,2,1,TRUE,NA
,,50,1,5,1,2012,3,1,TRUE,NA
438,R9908000,48,1,5,1,0,0,1,TRUE,NA
479,R4826000,52,1,5,1,1994,1,1,TRUE,NA
480,R4826300,53,1,5,1,1994,1,1,TRUE,NA
Expand Down Expand Up @@ -381,6 +422,18 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
556,T1487600,53,1,5,1,2008,1,1,TRUE,NA
557,T1487700,53,1,5,1,2008,2,1,TRUE,NA
558,T1487800,53,1,5,1,2008,3,1,TRUE,NA
,,52,1,5,1,2010,1,1,TRUE,NA
,,52,1,5,1,2010,2,1,TRUE,NA
,,52,1,5,1,2010,3,1,TRUE,NA
,,53,1,5,1,2010,1,1,TRUE,NA
,,53,1,5,1,2010,2,1,TRUE,NA
,,53,1,5,1,2010,3,1,TRUE,NA
,,52,1,5,1,2012,1,1,TRUE,NA
,,52,1,5,1,2012,2,1,TRUE,NA
,,52,1,5,1,2012,3,1,TRUE,NA
,,53,1,5,1,2012,1,1,TRUE,NA
,,53,1,5,1,2012,2,1,TRUE,NA
,,53,1,5,1,2012,3,1,TRUE,NA
559,R4826100,54,1,5,1,1994,1,1,TRUE,NA
560,R5496300,54,1,5,1,1996,1,1,TRUE,NA
561,R6211800,54,1,5,1,1998,1,1,TRUE,NA
Expand All @@ -395,11 +448,17 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
570,T0338500,55,1,5,1,2006,1,1,TRUE,NA
571,T0338600,55,1,5,1,2006,2,1,TRUE,NA
572,T1487500,54,1,5,1,2008,1,1,TRUE,NA
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
583,C0005800,60,2,4,2,2008,0,1,TRUE,NA
,,,,,,,,,,
584,R0009100,63,1,3,1,1979,0,1,TRUE,NA
586,Y2148600,64,2,4,3,2008,0,1,TRUE,NA
,,,,,,,,,,
587,R0009300,66,1,3,1,1979,0,1,TRUE,NA
588,C0000200,11,2,4,2,2008,0,1,TRUE,NA
,,,,,,,,,,
589,R8135300,90,1,7,1,2004,1,1,TRUE,
590,R8135400,90,1,7,1,2004,2,1,TRUE,
591,R8135500,90,1,7,1,2004,3,1,TRUE,
Expand All @@ -421,6 +480,19 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
607,T1765500,90,1,7,1,2008,5,1,TRUE,
608,T1765600,90,1,7,1,2008,6,1,TRUE,
609,T1765700,90,1,7,1,2008,8,1,TRUE,Child7 skipped
4001,T2763400,90,1,7,1,2010,1,1,TRUE,
4002,T2763500,90,1,7,1,2010,2,1,TRUE,
4003,T2763600,90,1,7,1,2010,3,1,TRUE,
4004,T2763700,90,1,7,1,2010,4,1,TRUE,
4005,T2763800,90,1,7,1,2010,5,1,TRUE,
4006,T2763900,90,1,7,1,2010,6,1,TRUE,
4007,T2764000,90,1,7,1,2010,9,1,TRUE,Child 7 & 8 skipped
4010,T3729600,90,1,7,1,2012,1,1,TRUE,
4011,T3729700,90,1,7,1,2012,2,1,TRUE,
4012,T3729800,90,1,7,1,2012,3,1,TRUE,
4013,T3729900,90,1,7,1,2012,4,1,TRUE,
4014,T3730000,90,1,7,1,2012,5,1,TRUE,
4015,T3730100,90,1,7,1,2012,6,1,TRUE,
610,R1373300,81,1,7,1,1984,1,1,TRUE,NA
611,R1373400,82,1,7,1,1984,1,1,TRUE,NA
612,R1373500,89,1,7,1,1984,1,1,TRUE,NA
Expand Down Expand Up @@ -645,6 +717,11 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
948,T1500901,88,1,7,1,2008,5,1,TRUE,
949,T1501000,86,1,7,1,2008,6,1,TRUE,
950,T1501001,88,1,7,1,2008,6,1,TRUE,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1037,R3772400,89,1,7,1,1992,1,1,TRUE,NA
1038,R3774500,89,1,7,1,1992,2,1,TRUE,NA
1039,R3776600,89,1,7,1,1992,3,1,TRUE,NA
Expand Down Expand Up @@ -731,6 +808,14 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1120,T1501900,89,1,7,1,2008,9,1,TRUE,NA
1121,T1502000,89,1,7,1,2008,10,1,TRUE,NA
1122,T1502100,89,1,7,1,2008,11,1,TRUE,NA
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1123,R3771900,82,1,7,1,1992,1,1,TRUE,NA
1124,R3774000,82,1,7,1,1992,2,1,TRUE,NA
1125,R3776100,82,1,7,1,1992,3,1,TRUE,NA
Expand Down Expand Up @@ -822,6 +907,15 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1211,T1498000,82,1,7,1,2008,8,1,TRUE,NA
1212,T1498100,82,1,7,1,2008,9,1,TRUE,NA
1213,T1498200,82,1,7,1,2008,10,1,TRUE,NA
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1214,R3771800,81,1,7,1,1992,1,1,TRUE,
1215,R3773900,81,1,7,1,1992,2,1,TRUE,
1216,R3776000,81,1,7,1,1992,3,1,TRUE,
Expand Down Expand Up @@ -917,6 +1011,13 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1306,T1496000,81,1,7,1,2008,9,1,TRUE,
1307,T1496100,81,1,7,1,2008,10,1,TRUE,
1308,T1496200,81,1,7,1,2008,11,1,TRUE,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1309,R6220600,83,1,7,1,1998,1,1,TRUE,NA
1310,R6220700,83,1,7,1,1998,2,1,TRUE,NA
1311,R6220800,83,1,7,1,1998,3,1,TRUE,NA
Expand Down Expand Up @@ -979,6 +1080,14 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1368,T1499200,83,1,7,1,2008,9,1,TRUE,NA
1369,T1499300,83,1,7,1,2008,10,1,TRUE,NA
1370,T1499400,83,1,7,1,2008,11,1,TRUE,NA
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1429,R6221700,84,1,7,1,1998,1,1,TRUE,NA
1430,R6221800,84,1,7,1,1998,2,1,TRUE,NA
1431,R6221900,84,1,7,1,1998,3,1,TRUE,NA
Expand Down Expand Up @@ -1035,6 +1144,14 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1484,T1500200,84,1,7,1,2008,8,1,TRUE,NA
1485,T1500300,84,1,7,1,2008,9,1,TRUE,NA
1486,T1500400,84,1,7,1,2008,10,1,TRUE,NA
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1487,R6221701,85,1,7,1,1998,1,1,TRUE,NA
1488,R6221801,85,1,7,1,1998,2,1,TRUE,NA
1489,R6221901,85,1,7,1,1998,3,1,TRUE,NA
Expand Down Expand Up @@ -1091,6 +1208,16 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1540,T1500201,85,1,7,1,2008,8,1,TRUE,NA
1541,T1500301,85,1,7,1,2008,9,1,TRUE,NA
1542,T1500401,85,1,7,1,2008,10,1,TRUE,NA
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1543,R3772000,91,1,7,1,1992,1,1,TRUE,NA
1544,R3774100,91,1,7,1,1992,2,1,TRUE,NA
1545,R3776200,91,1,7,1,1992,3,1,TRUE,NA
Expand Down Expand Up @@ -1173,9 +1300,6 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1675,R5513301,85,1,7,1,1996,6,1,TRUE,
1676,R5515601,85,1,7,1,1996,7,1,TRUE,
1677,R5520101,85,1,7,1,1996,9,1,TRUE,Skipped 8th
1692,T2260600,20,1,3,1,2010,0,1,TRUE,CURRENT DATE (DAY)
1693,T2260601,21,1,3,1,2010,0,1,TRUE,
1694,T2260602,22,1,3,1,2010,0,1,TRUE,
1695,T3108700,16,1,3,1,2010,0,1,TRUE,
1696,T2541200,81,1,7,1,2010,1,1,TRUE,NA
1697,T2541300,81,1,7,1,2010,2,1,TRUE,NA
Expand All @@ -1187,6 +1311,10 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1703,T2541900,81,1,7,1,2010,8,1,TRUE,NA
1704,T2542000,81,1,7,1,2010,9,1,TRUE,NA
1705,T2542100,81,1,7,1,2010,10,1,TRUE,NA
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1706,T1498300,82,1,7,1,2008,11,1,TRUE,
1707,T1495200,81,1,7,1,2008,1,1,TRUE,
1708,T0346800,81,1,7,1,2006,11,1,TRUE,
Expand Down Expand Up @@ -1260,6 +1388,12 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
1824,T2763800,90,1,7,1,2010,5,1,TRUE,
1825,T2763900,90,1,7,1,2010,6,1,TRUE,
1826,T2764000,90,1,7,1,2010,9,1,TRUE,Child7&8 Skipped
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
1827,T2533500,50,1,5,1,2010,1,1,TRUE,NA
1828,T2533600,50,1,5,1,2010,2,1,TRUE,NA
1829,T2533700,50,1,5,1,2010,3,1,TRUE,NA
Expand Down Expand Up @@ -1555,9 +1689,6 @@ ID,VariableCode,Item,Generation,ExtractSource,SurveySource,SurveyYear,LoopIndex,
2237,R0214700,103,1,3,1,1979,0,1,TRUE,No missing values
2239,C0005300,103,2,4,2,0,0,1,TRUE,no missing values
2240,Y0002100,16,2,4,3,1994,0,1,TRUE,NA
2242,C4006300,20,2,4,2,2010,0,1,TRUE,NA
2243,C4006301,21,2,4,2,2010,0,1,TRUE,NA
2244,C4006302,22,2,4,2,2010,0,1,TRUE,NA
2245,R9900600,145,2,5,1,0,1,1,FALSE,NA
2246,R9900601,146,2,5,1,0,1,1,FALSE,NA
2247,R9901400,145,2,5,1,0,2,1,FALSE,NA
Expand Down
Loading

0 comments on commit 699da7f

Please sign in to comment.