From 72b849f045aaef859beccd302c7d0d6096964a8c Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 24 Jan 2026 10:47:33 -0500 Subject: [PATCH 1/2] Add weeks_unemployed variable Input variable for weeks looking for work during the year. Sourced from CPS ASEC variable LKWEEKS. Co-Authored-By: Claude Opus 4.5 --- .../variables/gov/states/weeks_unemployed.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 policyengine_us/variables/gov/states/weeks_unemployed.py diff --git a/policyengine_us/variables/gov/states/weeks_unemployed.py b/policyengine_us/variables/gov/states/weeks_unemployed.py new file mode 100644 index 00000000000..eb3de6504eb --- /dev/null +++ b/policyengine_us/variables/gov/states/weeks_unemployed.py @@ -0,0 +1,13 @@ +from policyengine_us.model_api import * + + +class weeks_unemployed(Variable): + value_type = float + entity = Person + label = "weeks unemployed" + unit = "week" + documentation = ( + "Number of weeks during the year the person was looking for work. " + "From CPS ASEC variable LKWEEKS." + ) + definition_period = YEAR From 418a064ce31c631a8ff43f95841aec714386678b Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 26 Jan 2026 18:11:18 -0500 Subject: [PATCH 2/2] Add changelog entry Co-Authored-By: Claude Opus 4.5 --- changelog_entry.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29bb2d..10af6dc94ec 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: minor + changes: + added: + - weeks_unemployed input variable for weeks looking for work