-
Notifications
You must be signed in to change notification settings - Fork 1
/
tcpov1_make_asec.do
37 lines (23 loc) · 1.15 KB
/
tcpov1_make_asec.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
* TCPOVERTY: STEP 1
* MAKE CPS ASEC
* Ernie Tedeschi
* Last Updated: 21 March 2019
set more off
clear all
pause on
* SETTINGS
local wd "~/Documents/data/cpsasec" // Working directory
local asec asecmaster.dta // <--- This is your CPS ASEC extract file.
// If you're downloading from IPUMS, just put
// the extract filename here.
local output "~/Documents/data/cpsasec/make taxsim/dtadata.csv" // Output file to be read into Step 2a in R
* END SETTINGS
******************************************************************************
cd `wd'
use year serial relate depstat pernum sex age statefip schlcoll proptax momloc ///
poploc sploc eitcred fedretir fedtax statetax adjginc capgain taxinc fedtaxac ///
fica caploss stataxac incdivid incint incrent incother incalim incasist incss ///
incwelfr incwkcom incvet incchild incunemp inceduc gotveduc gotvothe gotvpens ///
gotvsurv incssi incwage incbus incfarm incsurv incdisab incretir spmfamunit spmtotres spmthresh spmwt ///
if year == 2018 using `asec'
export delimited using `output', nolabel replace