Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why is n24 capped at 3 on cps.csv? #131

Closed
MattHJensen opened this issue Nov 27, 2017 · 5 comments
Closed

why is n24 capped at 3 on cps.csv? #131

MattHJensen opened this issue Nov 27, 2017 · 5 comments
Labels

Comments

@MattHJensen
Copy link
Contributor

Why are there no values of n24 over 3 in the cps.csv file? SOI censors the PUF at 3, but why is the CPS-based file capped?

cc @andersonfrailey @martinholmer @evtedeschi3

@ernietedeschi
Copy link

ernietedeschi commented Nov 28, 2017

Looks like it's explicitly capped in the finalprep.py file to match what would be seen in the PUF. See lines 144-153:

    # Count number of children eligible for child tax credit
    # Max of three to mach PUF version of n24
    age1 = np.where((data.ICPS03 > 0) & (data.ICPS03 <= 17), 1, 0)
    age2 = np.where((data.ICPS04 > 0) & (data.ICPS04 <= 17), 1, 0)
    age3 = np.where((data.ICPS05 > 0) & (data.ICPS05 <= 17), 1, 0)
    age4 = np.where((data.ICPS06 > 0) & (data.ICPS06 <= 17), 1, 0)
    age5 = np.where((data.ICPS07) > 0 & (data.ICPS07 <= 17), 1, 0)
    n24 = age1 + age2 + age3 + age4 + age5
    n24 = np.where(n24 > 3, 3, n24)
    data['n24'] = n24

This is interesting because here is an area where the CPS has more reliable data than the PUF. Why is the CPS being censored here? Since the PUF is matched with the CPS, couldn't/shouldn't the CPS be used to fill in detail for PUF tax units likely to have more than 3 adults?

@andersonfrailey
Copy link
Collaborator

It was capped to match the PUF file. I can update the final prep scripts to change this when I get back in the office.

@MaxGhenis
Copy link
Contributor

Just checking in on this, as I'm working on a CTC analysis.

@andersonfrailey
Copy link
Collaborator

Thanks for bringing this back up @MaxGhenis. I'm working on an update to the CPS file that should be ready in the next day or two. I'll address this in that update as well.

@andersonfrailey
Copy link
Collaborator

This issue has been resolved in PR #161. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants