Learn R Programming

TempleMetrics (version 1.2.0)

llscm: llscm

Description

local linear estimator of smoothing coefficient model

Usage

llscm(formla, xformla = NULL, data, t, h)

Arguments

formla

a formula y ~ treatment

xformla

one sided formula for x variables to include, e.g. ~x1 + x2

data

the data.frame where y, t, and x are

t

conditional at a value T=t

h

bandwidth

Value

a 2*k (k being the dimension of X) vector of coefficients, the first k are the "levels", the second k are the derivatives with respect to each element of X.

Examples

Run this code
# NOT RUN {
data(igm)
igm$hs=ifelse(igm$HEDUC=="HS",1,0)
igm$col=ifelse(igm$HEDUC=="COL",1,0)
formla=lcfincome~lfincome
xformla=~hs+col
t=mean(igm$lfincome)
h=1.2
data=igm
llscm(formla,xformla,data,t,h)
# }

Run the code above in your browser using DataLab