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

Add age variable and SPM inputs #21

Merged
merged 2 commits into from
Sep 25, 2021

Conversation

nikhilwoodruff
Copy link
Contributor

@nikhilwoodruff nikhilwoodruff commented Sep 23, 2021

Adds an age variable from the CPS, and SPM input variables informing the net income variable.

@nikhilwoodruff nikhilwoodruff added the cps Current Population Survey March Supplement label Sep 23, 2021
@nikhilwoodruff nikhilwoodruff self-assigned this Sep 23, 2021
@nikhilwoodruff nikhilwoodruff changed the title Add age variable Add age variable and SPM inputs Sep 23, 2021
person (DataFrame): The CPS person table.
"""
cps["age"] = np.where(
person.A_AGE.between(80, 85),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be a between statement? I thought it's assigned just one of the values.

Also suggest leaving a comment about what this does and why.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To change to ==80

Maybe assert that there's no raw age between 81 and 84 first?

@nikhilwoodruff nikhilwoodruff merged commit c4bedf9 into PolicyEngine:master Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cps Current Population Survey March Supplement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants