Med {GenericML} | R Documentation |
Calculates the lower and and median of a vector as proposed in Comment 4.2 in the paper.
Med(x)
x |
A numeric vector. |
A list with the upper and lower median and the Med statistic (which is their mean).
Chernozhukov V., Demirer M., Duflo E., Fernández-Val I. (2020). “Generic Machine Learning Inference on Heterogenous Treatment Effects in Randomized Experiments.” arXiv preprint arXiv:1712.04802. URL: https://arxiv.org/abs/1712.04802.
set.seed(1)
x <- runif(100)
Med(x)