ltc-code 0.2.30__tar.gz → 0.2.31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ltc_code-0.2.30 → ltc_code-0.2.31}/PKG-INFO +1 -1
- {ltc_code-0.2.30 → ltc_code-0.2.31}/pyproject.toml +1 -1
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/build_nsc_outcomes_new.py +27 -4
- {ltc_code-0.2.30 → ltc_code-0.2.31}/README.md +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/aspire.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/check_cmo_apps.do +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/christel_house.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/democracy_prep.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/green_dot.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/helpers.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/ilt.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/kipp_nj.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/main.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/mappings.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/rocketship.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/yes_prep.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/aspire.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/christel_house.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/democracy_prep.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/green_dot.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/ilt.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/kipp.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/kipp_nj.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/rocketship.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/yes_prep.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260706_ceprscripts/BALANCE.do +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260706_ceprscripts/FS.do +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260706_ceprscripts/ITT.do +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260706_ceprscripts/TOT.do +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260706_ceprscripts/apps_helpers.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260706_ceprscripts/harmony.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260706_ceprscripts/main.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260712_uncommon_scripts/main.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260712_uncommon_scripts/mappings.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260712_uncommon_scripts/uncommon.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/__init__.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/aspire.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/check_cmo_apps.do +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/christel_house.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/green_dot.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/helpers.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/june13.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/june2.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/june30.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/june5.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/june7.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/kipp_nj.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/kipp_tx.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/main.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/make_summary_stats_table.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/mappings.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/may27.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/NEW_CROSSWALK.md +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/OUTCOMES.md +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/__init__.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/build_nsc_outcomes.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/dhs_stem/dhs_stem_cip_additions_2024.csv +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/dhs_stem/extract_dhs_stem_cips.R +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/dhs_stem/stemList2024.pdf +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/naics.csv +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/naics.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/naics_raw.xlsx +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/CREDENTIAL_LEVEL_LOOKUP_TABLE.xlsx +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/IPEDS_IC_2013.csv +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/IPEDS_IC_manual.xlsx +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/NSC_SCHOOL_CODE_TO_IPEDS_UNIT_ID_XWALK_APR-2023.xlsx +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/chetty/mrc_table11.dta +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/chetty/mrc_table2.dta +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/college_crosswalk.xls +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/directory.dta +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/raw/ipeds_data.dta +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/run_nsc_outcomes.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/plot_bars.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/polars_dates.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/rocketship.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/schema_mapping.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/school_name_xwalk/__init__.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/school_name_xwalk/all_schools_with_ccd.csv +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/school_name_xwalk/merge_school_ccd.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/signal_var_calcs.py +0 -0
- {ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/yes_prep.py +0 -0
|
@@ -1293,11 +1293,34 @@ for column in enrollment_outcomes.columns:
|
|
|
1293
1293
|
.alias(column)
|
|
1294
1294
|
)
|
|
1295
1295
|
|
|
1296
|
-
#
|
|
1297
|
-
#
|
|
1296
|
+
# Use exactly the status and window-overlap rules for att_any_byY4. A spell
|
|
1297
|
+
# starting before July 1 can count if it continues into the attendance window.
|
|
1298
|
+
qualifying_enroll = enroll.with_columns(
|
|
1299
|
+
pl.date(pl.col("cohort_18"), 7, 1).alias("_window_start"),
|
|
1300
|
+
pl.date(pl.col("cohort_18") + 4, 6, 30).alias("_window_end"),
|
|
1301
|
+
).filter(
|
|
1302
|
+
(pl.col("_term_att") == 1)
|
|
1303
|
+
& (pl.col("term_end_date") >= pl.col("_window_start"))
|
|
1304
|
+
)
|
|
1305
|
+
|
|
1306
|
+
# Before excluding late starts, count students whose first observed qualifying
|
|
1307
|
+
# enrollment is after Y4. Denominator: observed qualifying enrollees with a
|
|
1308
|
+
# fully observable Y4 window; not all applicants or an eventual-enrollment rate.
|
|
1309
|
+
first_enrollment_timing = qualifying_enroll.group_by("sid_cepr").agg(
|
|
1310
|
+
pl.col("term_start_date").min().alias("first_start"),
|
|
1311
|
+
pl.col("_window_end").first().alias("y4_end"),
|
|
1312
|
+
).filter(pl.col("y4_end") <= NSC_CUTOFF_DATE)
|
|
1313
|
+
|
|
1314
|
+
print("FIRST QUALIFYING ENROLLMENT AFTER Y4", first_enrollment_timing.select(
|
|
1315
|
+
pl.len().alias("observed_enrollees_with_Y4_followup"),
|
|
1316
|
+
(pl.col("first_start") > pl.col("y4_end")).sum().alias("first_after_Y4"),
|
|
1317
|
+
(100 * (pl.col("first_start") > pl.col("y4_end")).mean()).alias("percent_after_Y4"),
|
|
1318
|
+
))
|
|
1319
|
+
|
|
1320
|
+
# Select the earliest qualifying spell overlapping the by-Y4 window. Preserve
|
|
1321
|
+
# Sarah's tie-break: highest ID_FSC when enrollment start dates are equal.
|
|
1298
1322
|
first_institution = (
|
|
1299
|
-
|
|
1300
|
-
.filter(pl.col("term_start_date") >= pl.col("_hs_grad_start"))
|
|
1323
|
+
qualifying_enroll.filter(pl.col("term_start_date") <= pl.col("_window_end"))
|
|
1301
1324
|
.sort(["sid_cepr", "term_start_date", "ID_FSC"], descending=[False, False, True])
|
|
1302
1325
|
.group_by("sid_cepr", maintain_order=True)
|
|
1303
1326
|
.agg(
|
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/aspire.py
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/check_cmo_apps.do
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/christel_house.py
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/democracy_prep.py
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/green_dot.py
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/kipp_nj.py
RENAMED
|
File without changes
|
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/mappings.py
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/rocketship.py
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260614_new_build_scripts_update/yes_prep.py
RENAMED
|
File without changes
|
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/christel_house.py
RENAMED
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/20260630_census_disclosure/democracy_prep.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ltc_code-0.2.30 → ltc_code-0.2.31}/src/ltc_code/nsc/dhs_stem/dhs_stem_cip_additions_2024.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|