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)
perunitSum(udf, lead.in, dependent.in, qoi_in)
Named vector containing the per-unit sums.
data.frame
integer. A particular lead value
string specifying the dependent variable name
string specifying the QOI