computeWeightFe: Single Weight Iteration

Description Usage Arguments Value

View source: R/weights.R

Description

Single iteration of weight demean w.r.t. fixed effect.

Usage

1
computeWeightFe(dt, w_i, denom, fe)

Arguments

dt

data.table.

w_i

Character. Weight to demean.

denom

Numeric. Relative size of untreated population.

fe

Character. Name of the fixed effect to demean on.

Value

Void. Mutate the weight vector in the original data.table.


CdfInnovLab/didImputation documentation built on Dec. 17, 2021, 1:57 p.m.