Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

indicator

indicator


Description

indicator weighting function

Usage

indicator(X, u)

Arguments

X

matrix of X's from the data

u

a particular value to compare X's to

Value

numeric vector

Examples

data(mpdta)
dta <- subset(mpdta, year==2007)
X <- model.matrix(~lpop, data=dta)
X <- indicator(X, X[1,])

did

Treatment Effects with Multiple Periods and Groups

v2.0.0
GPL-2
Authors
Brantly Callaway [aut, cre], Pedro H. C. Sant'Anna [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.