Learn R Programming

PanelMatch (version 3.0.0)

perunitSum: perunitSum This is a low level function that is used to calculate a value associated with each unit. This value is a weighted summation of the dependent variable, based on the Wit values discussed in Imai et al. (2023)

Description

perunitSum This is a low level function that is used to calculate a value associated with each unit. This value is a weighted summation of the dependent variable, based on the Wit values discussed in Imai et al. (2023)

Usage

perunitSum(udf, lead.in, dependent.in, qoi_in)

Value

Named vector containing the per-unit sums.

Arguments

udf

data.frame

lead.in

integer. A particular lead value

dependent.in

string specifying the dependent variable name

qoi_in

string specifying the QOI