Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ cpsmar*.sas
cpsmar*.csv
*.dat


# pickle
cps*.pkl

# .npz numpy files
*.npz
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ puf_stage1/growfactors.csv: puf_stage1/factors_finalprep.py \
cd puf_stage1 ; python factors_finalprep.py

puf_stage2/puf_weights.csv.gz: puf_stage2/stage2.py \
puf_stage2/solve_lp_for_year.py \
puf_stage2/dataprep.py \
puf_stage2/solver.jl \
puf_data/cps-matched-puf.csv \
puf_stage1/Stage_I_factors.csv \
puf_stage1/Stage_II_targets.csv
Expand Down
332 changes: 332 additions & 0 deletions Manifest.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[deps]
Cbc = "9961bab8-2fa3-5c5a-9d89-47fab24efd76"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
NPZ = "15e1cf62-19b3-5cfa-8e77-841668bca605"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ conda env create -f environment.yml
To run the scripts that produce `puf.csv` and `cps.csv.gz`, activate the
`taxdata-dev` conda environment and follow the workflow laid out below.

`Julia` must also be installed to solve for the PUF and CPS weights. You
can download `Julia` from their [website](https://julialang.org/downloads/)
or by using `homebrew`.

Data-Preparation Documentation and Workflow
-------------------------------------------

Expand Down
Binary file modified cps_stage2/cps_weights.csv.gz
Binary file not shown.
Loading