Learn R Programming

did (version 1.2.3)

expf: expf

Description

exponential weighting function

Usage

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

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

# }

Run the code above in your browser using DataLab