
b07 aggregate Ruhela (pivot to long): With-alert -> seg placements.
Source:R/otis_all_analyze.R
morie_otis_analyze_b07_ruhela_aggregate.Rdb07 aggregate Ruhela (pivot to long): With-alert -> seg placements.
Usage
morie_otis_analyze_b07_ruhela_aggregate(data, out_dir = NULL)
morie_otis_analyze_b07_mrm_aggregate(data, out_dir = NULL)Examples
# \donttest{
otis_b07 <- morie_synth_otis("b07", n = 120L, seed = 1L)
morie_otis_analyze_b07_ruhela_aggregate(otis_b07)
#> OTIS b07 -- Aggregate Ruhela formulation: With-alert vs without-alert x gender -> Number of segregation placements
#> ==================================================================================================================
#> Source file b07_segregation_placements_alerts_and_hold_flags_by_gender.csv
#> Dataset id b07
#> Treatment column T_alert
#> Outcome (count) n_placements
#> Year FE EndFiscalYear
#> Covariate FEs Alert_Type, Gender
#> Cluster group (GEE) --
#> Cells 240
#> Total outcome count 9464
#> Overdispersion (Poisson AIC - NB AIC) 2932.8
#>
#> Aggregate RF on b07 testing alert-flagged vs no-alert placements in the same gender x alert-type stratum.
#>
#> IRR > 1 ==> treatment increases the count rate; IRR < 1 ==> treatment decreases it. Concordance between Poisson and NB indicates equidispersion; large gap (Poisson AIC > NB AIC) indicates overdispersion -- trust NB.
# }