sigmaNN2 | R Documentation |
Standard deviation is calculated by the formula (23) of Armstrong and Kolesár (2020)
sigmaNN2(Xt, Xc, Yt, Yc, N = 3)
Xt |
n_t by k design matrix for the treated units. |
Xc |
n_c by k design matrix for the control units. |
Yt |
outcome value for the treated group observations. |
Yc |
outcome value for the control group observations. |
N |
the number of nearest neighbors; default is |
Currently, this is not being used, although this works for general dimensions; debugging to be done.
a list containing conditional standard deviation estimates for treated
observations (sigma.t
) and control observations (sigma.c
)
Armstrong, Timothy B., and Michal Kolesár. 2020. "Simple and honest confidence intervals in nonparametric regression." Quantitative Economics 11 (1): 1–39.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.