The main function of the csabounds package. It computes bounds on the distribution of the treatment effect when panel data is available and under the Copula Stability Assumption. The function can also compute tighter bounds when other covariates are available.

csa.bounds(
formla,
t,
tmin1,
tmin2,
tname,
idname,
data,
delt.seq,
y.seq = NULL,
Y0tmethod,
h = NULL,
xformla = ~1,
firststep = c("dr", "qr", "ll"),
se = FALSE,
bootiters = 100,
cl = 1,
alp = 0.05,
...
)

## Arguments

formla A formula of the form: outcome ~ treatment the value for the third time period the value of the second time period the value of the first time period the name of the variable in data that contains the time period the name of the variable in data that contains the id variable the name of the data.frame. It should be in "long" format rather than "wide" format. a vector of values to compute the distribution of the treatment effect for a vectof of values to compute first-step distributions over (this is currently not used as it is computed internally) the name of a function to estimate the distribution of Y0t in a first step; for example qte::panel.qtet, qte::ddid2, or qte::CiC optional bandwidth when using local linear regression a formula for which covariates to use whether to use distribution regression ("dr"), quantile regression ("qr"), or local linear distribution regression ("ll") for the first step estimation of condtional distributions whether or not to compute standard errors (if TRUE, they are computed using the bootstrap if computing standard errors using the bootstrap, how many bootstrap iterations to use if computing standard errors using the bootstrap, how many cores to use in parallel computation (default is 1) significance level for confidence intervals whatever extra arguments need to be passed to Y0tmethod