
Run both Ruhela and Naive alert -> volatility builders.
Source:R/otis_causal.R
morie_otis_make_pair_alert_to_volatility_all.RdConvenience wrapper that returns both formulations side-by-side for RDF (Ruhela Dual Formulation) robustness analyses.
Value
Named list list(ruhela = ..., naive = ...) where
each element is the output of the corresponding make-pair builder.
Examples
# \donttest{
morie_otis_make_pair_alert_to_volatility_all(morie_otis_load())
#> $ruhela
#> $ruhela$data
#> UniqueIndividual_ID EndFiscalYear Gender Age_Category regA regB ac vm
#> 1 2022-SYNTH-001-RC 2022 Male 25 to 49 Toronto Toronto 1 0
#> 2 2022-SYNTH-002-RC 2022 Female 18 to 24 Eastern Eastern 1 0
#> 3 2023-SYNTH-003-RC 2023 Male 50 to 64 Central Central 1 0
#> 4 2023-SYNTH-004-RC 2023 Male 25 to 49 Western Western 1 0
#> 5 2024-SYNTH-005-RC 2024 Female 50 to 64 Northern Northern 1 0
#> T_high_ac Y_vm_count
#> 1 0 0
#> 2 0 0
#> 3 0 0
#> 4 0 0
#> 5 0 0
#>
#> $ruhela$T
#> [1] "T_high_ac"
#>
#> $ruhela$Y
#> [1] "Y_vm_count"
#>
#> $ruhela$covariates
#> [1] "Gender" "Age_Category" "EndFiscalYear"
#>
#>
#> $naive
#> $naive$data
#> UniqueIndividual_ID EndFiscalYear Gender Age_Category ac_naive vm_any
#> 1 2022-SYNTH-001-RC 2022 Male 25 to 49 1 0
#> 2 2022-SYNTH-002-RC 2022 Female 18 to 24 0 0
#> 3 2023-SYNTH-003-RC 2023 Male 50 to 64 2 0
#> 4 2023-SYNTH-004-RC 2023 Male 25 to 49 0 0
#> 5 2024-SYNTH-005-RC 2024 Female 50 to 64 2 0
#> T_high_ac Y_vm_any
#> 1 0 0
#> 2 0 0
#> 3 1 0
#> 4 0 0
#> 5 1 0
#>
#> $naive$T
#> [1] "T_high_ac"
#>
#> $naive$Y
#> [1] "Y_vm_any"
#>
#> $naive$covariates
#> [1] "Gender" "Age_Category" "EndFiscalYear"
#>
#>
# }