Learn R Programming

did (version 2.1.2)

indicator: indicator

Description

indicator weighting function

Usage

indicator(X, u)

Value

numeric vector

Arguments

X

matrix of X's from the data

u

a particular value to compare X's to

Examples

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

Run the code above in your browser using DataLab