sensitivity_alpha: Sensitivity Analysis for SC-CIC

View source: R/diagnostics.R

sensitivity_alphaR Documentation

Sensitivity Analysis for SC-CIC

Description

Re-estimates the SC-CIC treatment effect over a grid of elastic net penalty parameters, showing sensitivity to the regularization choice.

Usage

sensitivity_alpha(
  y_treated,
  y_donors,
  treatment_period,
  alphas = seq(0, 1, 0.2),
  seed = 42
)

Arguments

y_treated

Numeric vector. Treated unit outcomes.

y_donors

Numeric matrix. Donor unit outcomes.

treatment_period

Integer. First treatment period index.

alphas

Numeric vector. Grid of alpha values to evaluate. Default is seq(0, 1, 0.2).

seed

Integer or NULL. Random seed.

Value

A data frame with columns alpha, tau_cic, tau_did, n_donors, and pre_rmse.


sccic documentation built on April 10, 2026, 5:07 p.m.