gg {cdid} | R Documentation |
gg
Description
Function to simplify weight computations. For more details on the methodology, see: Bellego, Benatia, and Dortet-Bernadet (2024), "The Chained Difference-in-Differences", Journal of Econometrics, https://doi.org/10.1016/j.jeconom.2023.11.002.
Usage
gg(x, thet)
Arguments
x |
predictors |
thet |
parameters |
Value
A numeric vector representing the computed weights based on the predictors and parameters.
Examples
predictors <- matrix(c(1, 2, 3, 4), ncol = 2)
parameters <- matrix(c(0.5, -0.5), ncol = 1)
gg(predictors, parameters)
[Package cdid version 0.1.1 Index]