llscm: llscm

Description Usage Arguments Value Examples

View source: R/llscm.R

Description

local linear estimator of smoothing coefficient model

Usage

1
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

1
2
3
4
5
6
7
8
9
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)

TempleMetrics documentation built on May 2, 2019, 8:16 a.m.