#pragma once #include namespace Vars { /** This enum lists all the possible variables in the simulation. Details are added using the VarsInfo::VarsInfo constructor. */ enum Vars_t { active=0, ///< true if the person is active in the simulation a1c, ///< HbA1c, stored as Double adl1, ///< ADL 1 [0, 1], stored as Boolean adl2, ///< ADL 2 [0, 1], stored as Boolean adl3p, ///< ADL 3 or more [0, 1], stored as Boolean adlstat, ///< ADL status (1=0 ADLS, 2=1 ADL, 3=2 ADLs, 4=3+ ADLs) admin_ssi, ///< SSI Claiming Adjustment, Stored as Double afibe, ///< Non-valvular AFib [0, 1] age, ///< Exact age on July 1st, (year - rbyr) + (7-rbmonth)/12, stored as Double agec, ///< Approx Range [51, 85], stored as Short aime_org, ///< AIME valued at year of reaching 60 or year 2004,whichever earlier, Approx Range [0.14767, 8433.632], stored as Double alzhmr, ///< Alzheimer's disase, stored as Boolean alzhe, ///< Alzheimer's disase from HRS wave 10 data, stored as Boolean anydb, ///< Any DB from current job RND VG [0, 1], stored as Boolean anydc, ///< Any DC from current job RND VG [0, 1], stored as Boolean anyexercise, ///< Any phyisical activity, stored as Boolean anyhi, ///< HI cov -gov/emp/other [0, 1], stored as Boolean any_iearn_nl, /// Any earnings if not in the labor force any_iearn_ue, /// Any earnings if unemployed anyrx_mcbs, ///< Any prescriptions from MCBS model anyrx_mcbs_di, ///< Any prescriptions for DI recipients from MCBS model anyrx_meps, ///< Any prescriptions from MEPS model births, ///< Count of childbirth events (0,1,2), stored as Short black, ///< Non-Hispanic black [0, 1], stored as Boolean bornus, ///< Born in the U.S.? [0, 1], stored as Boolean bpcontrol, ///< Blood pressure under control for hibpe bs_treated, ///< Treated with Bariatric Surgery intervention, Boolean bweight, ///< Approx Range [0, 16153], stored as Double caidmd, ///< Medicaid cost, adjusted caidmd_mcbs, ///< Medicaid cost estimated using the MCBS dataset, stored as Double caidmd_meps, ///< Medicaid cost estimated using the MEPS dataset, stored as Double cancre, ///< Cancer [0, 1], stored as Boolean catholic, ///< Religion - Catholic chfe, ///< Congestive heart failure {0,1}, stored as Boolean deprsymp, ///< CESD 5+ depression symptoms chldsrh, ///< Self-reported health as a child clmwv, ///< Approx Range [1, 7], stored as Short cogstate1, ///< cogstate 1 [0, 1], stored as Boolean cogstate2, ///< cogstate 2 [0, 1], stored as Boolean cogstate3, ///< cogstate 3 or more [0, 1], stored as Boolean cogstate, // Cognitive Impairment state, (1, 2, 3) = (Demented, CIND, Normal) cohab, ///< Marital status - Cohabitating, stored as Boolean cohab_cond1, ///< Marital status - VARIABLE REQUIRED FOR BLOWFISH, DO NOT USE FOR OUTPUT cohab_cond2, ///< Marital status - VARIABLE REQUIRED FOR BLOWFISH, DO NOT USE FOR OUTPUT cohab_cond3, ///< Marital status - VARIABLE REQUIRED FOR BLOWFISH, DO NOT USE FOR OUTPUT cohab_cond4, ///< Marital status - VARIABLE REQUIRED FOR BLOWFISH, DO NOT USE FOR OUTPUT cohab_cond5, ///< Marital status - VARIABLE REQUIRED FOR BLOWFISH, DO NOT USE FOR OUTPUT cohab_cond6, ///< Marital status - VARIABLE REQUIRED FOR BLOWFISH, DO NOT USE FOR OUTPUT cohab2married_f, ///< female: lag cohab, now married cohab2married_m, ///< male: lag cohab, now married college, ///< Some college and above [0, 1], stored as Boolean confirmed_admci_ever, ///< Ever had two consecutive waves with AD/MCI TICS [0,1], stored as Boolean crp, ///< C-Reative Protien, stored as Double ctax, ///< City Tax, stored as Double cum_totmd, ///< Cumulative Medical Costs, stored as Double db_tenure, ///< Approx Range [-2, 54.5], stored as Double dbage, ///< Age started claiming pension, stored as Short dbclaim, ///< Claiming DB [0, 1], stored as Boolean dbpen, ///< Pension Benefit amount? dcwlth, ///< Individual DC wlth wv1-5 only in 1000s Approx Range [0, 1250], stored as Short dcwlthx, ///< Individual DC wlth wv1-5 only in 1000s(=dcwlth) Approx Range [0, 1250], stored as Short diabe, ///< Diabetes [0, 1], stored as Boolean diaberx, ///< Diabetic Drugs [0, 1], stored as Boolean diaberx_start, ///< Start taking Diabetic Drugs [0, 1], stored as Boolean diaberx_stop, ///< Stop taking Diabetic Drugs [0, 1], stored as Boolean diabkidney, ///< Has your diabetes caused kidney problems diben, ///< Amount of DI Benefits diclaim, ///< Claiming SSDI [0, 1], stored as Boolean died, ///< Died [0, 1], stored as Boolean doctim, ///< Times at a doctor Approx Range [0.0182607,80.70206], stored as Double educ, ///< Education recoded Approx Range [1, 3], stored as Short educlvl, ///< Six-level education variable, all educ vars should derive from this for FAM educ_t1, ///< Transition variable from educlvl1 educ_t2, ///< Transition variable from educlvl2 educ_t3, ///< Transition variable from educlvl3 educ_t4, ///< Transition variable from educlvl4 entry, ///< Year of entry into the model, stored as Short era, ///< RECODE of rdb_ea_c (RECODE of eage_db (Early ret age for curren... Approx Range [0, 60], stored as Short everm, ///< Ever married? [0, 1], stored as Boolean eversep, ///< Ever separated (previous marriage or cohabitation)? [0, 1], stored as Boolean exitcohab_f, ///< female: lag cohab, now not cohab exitcohab_m, ///< male: lag cohab, now not cohab exitmarried_f, ///< female: lag married, now not married exitmarried_m, ///< male: lag married, now not married exitsingle_f, ///< female: lag single, now not single exitsingle_m, ///< male: lag single, now not single exurb, ///< Lives in exurbs fanydb, ///< Init.of any defined benefit pension plan fcanc50, ///< Init.of Cancer [0, 1] at age 50, stored as Boolean fdiabe50, ///< Init.of Diabetes [0, 1] at age 50, stored as Boolean fheart50, ///< Init.of Heart disease [0, 1] at age 50, stored as Boolean fhibp50, ///< Init.of Hypertension [0, 1] at age 50, stored as Boolean fiearnuc, ///< Init. of Uncapped Earnings fkids, ///< Number of children in 2004, stored as Float flogbmi50, ///< Init.of Log(BMI) at age 50, stored as Double flogiearnuc, ///< Initial value of log uncapped earnings flogiearnx, ///< Approx Range [0, 0.0599147], stored as Double flung50, ///< Init.of Lung disease [0, 1] at age 50, stored as Boolean fmarried50, ///< Init.of Married [0, 1] at age 50, stored as Boolean fmcare_pta_premium, ///< Lag of mcare_pta_premium fmcare_ptb_premium, ///< Init. of mcare_ptb_premium fpoor, ///< Poor as a child fproptax, ///< Initial of proptax, stored as Double fproptax_nonzero, ///< Init of proptax_nonzero, stored as Boolean fraime, ///< Initial AIME, stored as Double frbyr, frich, ///< Rich as a child frq, ///< Init.of number of quarters earned, stored as Short fsingle50, ///< Init.of Single [0, 1] at age 50, stored as Boolean fsmoken50, ///< Init.of Current smoking [0, 1] at age 50, stored as Boolean fsmokev, fstrok50, ///< Init.of Stroke [0, 1] at age 50, stored as Boolean ftax, ///< Federal Tax, stored as Double fthreduc1, ///< Father Education level 1 fthreduc2, ///< Father Education level 2 fthreduc3, ///< Father Education level 3 fthreduc4, ///< Father Education level 4 fu_fiitax_ind, ///< Federal taxes at family unit, divided between head/wife fu_siitax_ind, ///< State taxes at family unit, divided between head/wife fullparttime, ///< Part-time (0) or full-time (1) fvolhours, ///< Init.of volunteer hours fwhtcoll, ///< Longest held occupation - white collar reported in 2004 fwidowed, ///< Init.of Widowed [0, 1], stored as Boolean fwidowed50, ///< Init.of Widowed [0, 1] at age 50, stored as Boolean gkcarehrs, ///< Grandchild care hours in previous two years gross, ///< Gross Income, stored as Double hacohort, ///< hacohort: sample cohort Approx Range [0, 5], stored as Short hatota, ///< HH wlth in 1000s Approx Range [-2245.5, 74459], stored as Double hatotax, ///< HH wlth in 1000s if positive-max 2000,zero otherwise Approx Range [-2245.5, 2000], stored as Double hearte, ///< Heart disease [0, 1], stored as Boolean hdl, ///< HDL cholesterol, stored as Double hearta, ///< Heart attack since last wave [0,1], stored as Boolean heartae, ///< Ever had heart attack [0,1], stored as Boolean agi, ///< Individual Adjusted Gross Income, calculated in GovExpModule helphoursyr, ///< Total annual help hours received helphoursyr_sp, ///< Total annual help hours received from spouse helphoursyr_nonsp, ///< Total annual help hours received from non-spouse help_to_spouse, ///< Help given from respondent to spouse hhearn, ///< Total household earnings, stored as Double hhid, ///< Wave specific household ID Approx Range [30, 5027610], stored as Double hhidpn, ///< R person unique identifier Approx Range [3010, 503000000], stored as Double hhttlinc, ///< Total household income (just hhearn, stored as Double hhwealth, ///< hatotax * 1000, stored as Double hicap, ///< Household Capital Income hicap_real, ///< Household Capital Income (not inflation adjusted) hicap_nonzero, ///< Household Capital Income not zero hibpe, ///< Hypertension [0, 1], stored as Boolean hibperx, ///< Hypertension Drugs [0, 1], stored as Boolean hibperx_start, ///< Start taking Hypertension Drugs [0, 1], stored as Boolean hibperx_stop, ///< Stop taking Hypertension Drugs [0, 1], stored as Boolean hispan, ///< Hispanic [0, 1], stored as Boolean hmed, ///< Household Medicare tax, stored as Double hoasi, ///< Household OASI tax, stored as Double hsless, ///< Less than high school [0, 1], stored as Boolean hspnit, ///< Number of nights spent at the hospital Approx Range [0.0715097,35.58515], stored as Double hsptim, ///< Number of inpatient events Approx Range [0.0305709,4.899286], stored as Double iadl1, ///< IADL 1 [0, 1], stored as Boolean iadl2p, ///< IADL 2 or more [0, 1], stored as Boolean iadlstat, ///< IADL Status (1=0 IADLs, 2=1 IADL, 3=2+ IADLs) iearn, ///< Individual earnings in 1000s Approx Range [0, 646], stored as Short iearn_real, ///< Individual earnings in 1000s (not inflation adjusted) Approx Range [0, 646], stored as Short iearnuc, ///< Indiviaul earnings in 1000s, stored as Short iearnx, ///< Individual earnings in 1000s-max 200 Approx Range [0, 200], stored as Short igxfr, ///< Misc government transfers igxfr_nonzero, ///< Whehter igxfr is nonzero ihs_tcamt_cpl, ///< IHS of transfers to children init_age, ///< age at entry into simulation (if alive at entry) init_totcog, ///< totcog at entry into simulation init_l2totcog, ///< l2totcog at entry into simulation inlaborforce, ///< Working for pay or unemployed inpatient_ever, ///< If the person is ever an inpatient insamp, ///< Approx Range [1, 2], stored as Short inscat, ///< Categorical health insurance variable (none, public only, any private) insulin, ///< Diabetic taking insulin internal_id, ///< simulation internal ID, used for debugging isret, ///< income: R SoCSec Retirment Approx Range [0, 47046.87], stored as Double iwbeg, ///< R interview begin date Approx Range [16116, 16451], stored as Double iwstat, ///< R interview status Approx Range [1, 1], stored as Short jewish, ///< Religion - Jewish kid_byravg, ///< Mean birth year of children k6score, /// Lag of in labor force l2inscat, ///> Lag of insurance category l2mstat_new, ///< Lag of Marital Status [1,3], stored as Short l2numbiokids, ///< Lag of Number of biological children, stored as Short l2adl1, ///< Lag of ADL 1, [0, 1], stored as Boolean l2adl2, ///< Lag of ADL 2, [0, 1], stored as Boolean l2adl3p, ///< Lag of ADL 3 or more, [0, 1], stored as Boolean l2adlstat, ///< Lag of number of ADLs l2afibe, ///< Lag of NVAF l2age, ///< Lag of exact age on July 1st, (year - rbyr) + (7-rbmonth)/12, Stored as Double l2alzhmr, ///< Lag of Alzheimer's disease, stored as Boolean l2alzhe, ///< Lag of Alzheimer's disease from HRS, stored as Boolean l2anyexercise, ///< Lag of any physical activity, stored as Boolean l2anyhi, ///< Lag of HI cov -gov/emp/other, [0, 1], stored as Boolean l2bpcontrol, ///< Lag of bpcontrol l2bs_treated, ///< Lag of treated with bariatric surgery, stored as Boolean l2cancre, ///< Lag of Cancer, [0, 1], stored as Boolean l2chfe, ///< Lag of Congestive heart failure {0,1}, stored as Boolean l2cogstate1, ///< Lag of cogstate 1 [0, 1], stored as Boolean l2cogstate2, ///< Lag of cogstate 2 [0, 1], stored as Boolean l2cogstate3, ///< Lag of cogstate 3 or more [0, 1], stored as Boolean l2cogstate, // Lag of Cognitive Impairment state, (1, 2, 3) = (Demented, CIND, Normal) l2confirmed_admci_ever, ///