fit_treatment_models: Fit treatment models for IPTW

View source: R/iptw.R

fit_treatment_modelsR Documentation

Fit treatment models for IPTW

Description

Fit treatment models for IPTW

Usage

fit_treatment_models(data, rhs_formula, Tt, freq_w)

Arguments

data

Wide format data frame with one row per individual, and columns Lt, At, Yt for t = 0,1,...,Tt.

rhs_formula

chr. Formulas to use Format: '~L{t}+L{t-1}' etc.

Tt

int. Final period in dataset (t=0,1,...,Tt)

...

Parameters passed to glm.

Value

list of models for period t=0,1,...,Tt, in that order.


audreyrenson/didgformula documentation built on Oct. 9, 2022, 11:45 a.m.