Learn R Programming

cdid (version 0.1.0)

gg: 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)

Value

A numeric vector representing the computed weights based on the predictors and parameters.

Arguments

x

predictors

thet

parameters

Examples

Run this code
predictors <- matrix(c(1, 2, 3, 4), ncol = 2)
parameters <- matrix(c(0.5, -0.5), ncol = 1)
gg(predictors, parameters)

Run the code above in your browser using DataLab