Computes local intergenerational elasticities and its Standard Deviations

LLIGE(B, formla, xformla, data, tvals, h, cl)

Arguments

B

number of bootstrap iterations

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

tvals

a grid of values of treatment variable

h

bandwidth

cl

the number of clusters to use, default is 1

Value

LLIGE AND its SD

Examples

data(igm) igm$hs=ifelse(igm$HEDUC=="HS",1,0) igm$col=ifelse(igm$HEDUC=="COL",1,0) formla=lcfincome~lfincome xformla=~hs+col tvals=seq(quantile(igm$lfincome,probs = 0.1),quantile(igm$lfincome,probs = 0.9),length.out = 10) h=1.2 data=igm B=7 cl=1 LLIGE(B,formla=formla, xformla=xformla, data=data,tvals=tvals,h=h,cl=cl)
#> $llige #> [1] 0.4615451 0.4646090 0.4703728 0.4508735 0.4597155 0.4568141 0.4541572 #> [8] 0.4169723 0.4288262 0.3931531 #> attr(,"class") #> [1] "localIGE" #> #> $SD #> [1] 0.13325974 0.05960191 0.07820294 0.07863286 0.06777491 0.06542679 #> [7] 0.06067254 0.06559209 0.05598590 0.06062969 #> attr(,"class") #> [1] "sdF" #> #> attr(,"class") #> [1] "LLIGE"