pslmodels / ui_calculator Goto Github PK
View Code? Open in Web Editor NEWCalculator for unemployment insurance benefits
Calculator for unemployment insurance benefits
Hi! I'm a research assistant trying to use this code for our own project. However, our data is large, so I'm rewriting ui_calculator.py
in a way that takes advantage of column/dataframe operations (as opposed to the current approach of calculating everything one row at a time via list comprehension).
Why is there a distinction made between earnings_history
and base_period
?
Per observation, earnings_history
is a list [q1, q2, q3, q4, 0]
. I interpret this as the earnings history (q1
-q4
) plus a 0 to represent the current quarter where the individual is unemployed. This is from the definition of calc_weekly_state_quarterly()
.
Then, in the definition of calc_weekly_state()
, we create base_period = earnings_hist[-5:-1]
, which is the same as [q1, q2, q3, q4]
. From here, we only use base_period
. Why add the 0 just to ignore it completely?
Somewhat related, I notice we index [-5:-1]
when [:4]
is equivalent; is the intended result a reversing ordering like [q4, q3, q2, q1]
?
great work guys...
Would it be possible to generate the output behind, e.g., Figure 5 in the BFI working paper, and post it in the repository?
Objective
Reduce sampling variability by adding more years of data
Use multiple years from both CPS and BAM. Will need to take a stance on what deflator to use.
The Policy Simulation Library appreciates the willingness of the ui_calculator
maintainers to join the Library! The ui_calculator
model is currently a PSL-incubating model. This issue highlights and provides a status update on progress towards the model obtaining PSL-cataloged status. The criteria for inclusion in the PSL catalog are outlined below, with notes on the status of this model's progress towards satisfying these criteria.
Once all "MUST" items are checked off, a PR will be opened to include a PSL_catalog.json
configuration file in this repository.
Acceptance Criteria for Transparency and Quality
Community Criteria
Interoperability Criteria
PSL_catalog.json
configuration file to be used for cataloging these criteria MUST be included in the project's repository. Specific instructions for creating this file can be found in the Catalog-Builder Documentation.Is there a reason DC is not included in the state_eligibility worksheet?
If I'm interpreting this this correctly, it looks like hqw = 1.5*, absolute_hqw = 1300, and abs_2hqw = 1950.
FWIW, I implemented this on my local copy and it gives reasonable looking results. Is there a reason we shouldn't do this?
(*This isn't quite right since it can be within $70 of 1.5 * hqw, but I think implementing that would require writing an exception or an additional parameter into the function.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.