-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Calibrate number of people age {0-17, 18-64, 65+} per tax unit by s,j #9
Comments
@MaxGhenis Yes, I haven't run that script on Colab, but runs locally fine (assuming you have all dependencies installed). All columns in Issue #6 are already included in the PSID data saved to the repo. |
Recapping next steps from a meeting with @prrathi:
|
The KDE functions and the dependent
@jdebacker what would you suggest? |
Actually @prrathi and I realized that we could use the existing KDE function where we model each sxj's share of total children/adults/seniors in the same way that e.g. the share of total transfers by sxj is modeled. Then we can multiply that by the current number of children/adults/seniors to get the average by sxj. |
Yes - that is a good solution! |
Some updates: @prrathi tried the KDE with some PSID data, but it was still noisy because it's the quotient of a smoothed numerator (# kids in bin) and unsmoothed denominator (# families in bin). He's going to try smoothing the denominator too. Given the PSID data issues described in #28, we tried returning to the taxdata CPS file in this notebook, and using stratified LOESS. Here's the raw data for 18-64: Here's the LOESS smoother with the 18-64 bin, just for household head ages 18-64 to avoid smoothing that spike: We tried some different values of If the KDE smoothing for the numerator and denominator doesn't work as well, this stratified LOESS seems pretty good (though a multivariate LOESS would be better). @rickecon fyi. |
Implementing UBI directly in OG-USA (https://github.com/PSLmodels/OG-USA/issues/626) requires calibrating the number of people per tax unit by
s,j
, split for each of the age groups that could have different UBI amounts, currently 0-17, 18-64, and 65+. We'll want to calculate the value pers,j
and then apply kernel density smoothing.@prrathi and I calculated unsmoothed values using CPS tax units in this notebook. Next step is to do it with PSID instead.
Seems like we can use
psid_data_setup.py
for this. Our first try crashed Colab but @prrathi will try it again.@jdebacker, is
psid_lifetime_income.pkl
, produced in that script, too big for GitHub?Or will we have to hold onto the columns listed in #6 and aggregate them along the way anyway, requiring modification to
psid_data_setup.py
?The text was updated successfully, but these errors were encountered: