csa.bounds | R Documentation |
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, ... )
formla |
A formula of the form: outcome ~ treatment |
t |
the value for the third time period |
tmin1 |
the value of the second time period |
tmin2 |
the value of the first time period |
tname |
the name of the variable in |
idname |
the name of the variable in |
data |
the name of the |
delt.seq |
a vector of values to compute the distribution of the treatment effect for |
y.seq |
a vectof of values to compute first-step distributions over (this is currently not used as it is computed internally) |
Y0tmethod |
the name of a function to estimate the distribution
of Y0t in a first step; for example |
h |
optional bandwidth when using local linear regression |
xformla |
a formula for which covariates to use |
firststep |
whether to use distribution regression ("dr"), quantile regression ("qr"), or local linear distribution regression ("ll") for the first step estimation of condtional distributions |
se |
whether or not to compute standard errors (if |
bootiters |
if computing standard errors using the bootstrap, how many bootstrap iterations to use |
cl |
if computing standard errors using the bootstrap, how many cores to use in parallel computation (default is 1) |
alp |
significance level for confidence intervals |
... |
whatever extra arguments need to be passed to Y0tmethod |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.