expf: expf

Description Usage Arguments Value Examples

View source: R/did.R

Description

exponential weighting function

Usage

1
expf(X, u)

Arguments

X

matrix of X's from the data

u

a particular value to multiply times the X's

Value

numeric vector

Examples

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

did documentation built on Oct. 17, 2018, 1:03 a.m.