Skip to content

Commit

Permalink
Merge pull request #124 from andersonfrailey/andersonfrailey-hidfid
Browse files Browse the repository at this point in the history
Add ffpos and h_seq variables
  • Loading branch information
andersonfrailey authored Nov 9, 2017
2 parents 46c34ff + b04dc9b commit 5c705f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file modified cps_data/cps.csv.gz
Binary file not shown.
7 changes: 5 additions & 2 deletions cps_data/finalprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def main():
'medicaid_ben': 'mcaid_ben',
'SS': 'ss_ben',
'SNAP': 'snap_ben',
'SLTX': 'e18400'
'SLTX': 'e18400',
'XHID': 'h_seq',
'XFID': 'ffpos'
}
data = data.rename(columns=renames)
data['MARS'] = np.where(data.JS == 3, 4, data.JS)
Expand Down Expand Up @@ -197,7 +199,8 @@ def drop_vars(data):
'e87530', 'elderly_dependent', 'f2441', 'f6251', 'filer', 'n24',
'nu05', 'nu13', 'nu18', 'n1821', 'n21', 'p08000', 'p22250', 'p23250',
'p25470', 'p87521', 's006', 'e03210', 'ssi_ben', 'snap_ben',
'vet_ben', 'mcare_ben', 'mcaid_ben', 'ss_ben', 'other_ben', 'total_ben'
'vet_ben', 'mcare_ben', 'mcaid_ben', 'ss_ben', 'other_ben',
'total_ben', 'h_seq', 'ffpos'
]

drop_vars = []
Expand Down

0 comments on commit 5c705f9

Please sign in to comment.