Description Usage Arguments Value
Calculates residuals corresponding to each observations.
1 | resid_calc(y, x, d = NULL, deg, kern = "epa", var.reg = "npr")
|
y |
dependent variable; possibly a matrix with |
x |
a vector of independent variable |
d |
a vector of treatment indicator; it can be arbitrarily specified when not used. |
deg |
degree of local polynomial regression to be used |
kern |
kernel used to calculate conditional variance function;
supports |
var.reg |
nonparametric regression method used to calculate residuals;
either |
a list of residuals corresponding to treated individuals (resid.1
) and control individuals (resid.0
);
if there is no control group, resid.0 = 0
is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.