View source: R/conditional_did_pretest.R
indicator | R Documentation |
indicator weighting function
indicator(X, u)
X |
matrix of X's from the data |
u |
a particular value to compare X's to |
numeric vector
data(mpdta)
dta <- subset(mpdta, year==2007)
X <- model.matrix(~lpop, data=dta)
X <- indicator(X, X[1,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.