indicator: indicator

Description Usage Arguments Value Examples

View source: R/conditional_did_pretest.R

Description

indicator weighting function

Usage

1
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

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

did documentation built on Jan. 28, 2022, 1:06 a.m.