Per-fiscal-year full-DLRM Ruhela formulation driver.
Source:R/otis_all_analyze.R
morie_otis_analyze_ruhela_per_year.RdRuns the complete 10-estimator DLRM separately on each fiscal year. This is a heavy operation (~7x the single-year runtime).
Usage
morie_otis_analyze_ruhela_per_year(
data,
ds_id,
treatment,
outcome,
covariates,
year_col = "EndFiscalYear",
cluster_col = "EndFiscalYear",
out_dir = NULL
)Arguments
- data
Long-format data.frame with treatment / outcome / cov.
- ds_id
Dataset id label.
- treatment
Treatment column name.
- outcome
Outcome column name.
- covariates
Character vector of covariate column names.
- year_col
Year column (default
"EndFiscalYear").- cluster_col
Cluster axis for SE, or
NULL.- out_dir
Optional output directory.
Examples
if (FALSE) { # \dontrun{
morie_otis_analyze_ruhela_per_year(df, ds_id = "a01",
treatment = "T", outcome = "Y", covariates = c("Gender"))
} # }