diff --git a/changelog.d/work-experience-person-inputs.added.md b/changelog.d/work-experience-person-inputs.added.md new file mode 100644 index 00000000000..d6a10718e13 --- /dev/null +++ b/changelog.d/work-experience-person-inputs.added.md @@ -0,0 +1 @@ +Detailed and major industry recode and worked-last-year person input variables from the CPS ASEC work-experience block (WEIND, WEMIND, WORKYN). diff --git a/policyengine_us/variables/household/demographic/person/detailed_industry_recode.py b/policyengine_us/variables/household/demographic/person/detailed_industry_recode.py new file mode 100644 index 00000000000..3138cdc984e --- /dev/null +++ b/policyengine_us/variables/household/demographic/person/detailed_industry_recode.py @@ -0,0 +1,11 @@ +from policyengine_us.model_api import * + + +class detailed_industry_recode(Variable): + value_type = int + entity = Person + label = "CPS detailed industry recode of previous year" + documentation = ( + "This variable is the WEIND variable in the Current Population Survey." + ) + definition_period = YEAR diff --git a/policyengine_us/variables/household/demographic/person/major_industry_recode.py b/policyengine_us/variables/household/demographic/person/major_industry_recode.py new file mode 100644 index 00000000000..a38879d4dc1 --- /dev/null +++ b/policyengine_us/variables/household/demographic/person/major_industry_recode.py @@ -0,0 +1,11 @@ +from policyengine_us.model_api import * + + +class major_industry_recode(Variable): + value_type = int + entity = Person + label = "CPS major industry recode of previous year" + documentation = ( + "This variable is the WEMIND variable in the Current Population Survey." + ) + definition_period = YEAR diff --git a/policyengine_us/variables/household/demographic/person/worked_last_year.py b/policyengine_us/variables/household/demographic/person/worked_last_year.py new file mode 100644 index 00000000000..ecda199c213 --- /dev/null +++ b/policyengine_us/variables/household/demographic/person/worked_last_year.py @@ -0,0 +1,15 @@ +from policyengine_us.model_api import * + + +class worked_last_year(Variable): + value_type = bool + entity = Person + label = "worked at any time in the previous year" + documentation = ( + "Whether the person worked at any time during the previous year: " + "the WKSWORK variable in the Current Population Survey exceeding " + "zero, which is the universe condition of the work-experience " + "longest-job recodes (detailed_occupation_recode, " + "detailed_industry_recode, major_industry_recode)." + ) + definition_period = YEAR