indicator function

indicator

indicator

indicator weighting function

indicator(X, u)

Arguments

  • X: matrix of X's from the data
  • u: a particular value to compare X's to

Returns

numeric vector

Examples

data(mpdta) dta <- subset(mpdta, year==2007) X <- model.matrix(~lpop, data=dta) X <- indicator(X, X[1,])
  • Maintainer: Brantly Callaway
  • License: GPL-2
  • Last published: 2022-07-20