sdF: sdF

Description Usage Arguments Value Examples

Description

using wild bootstrap to obtain standard deviation

Usage

1
sdF(B, formla, xformla, data, tvals, h, cl = 1)

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

sd

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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
sdF(B,formla=formla, xformla=xformla, data=data,tvals=tvals,h=h)

ccfa documentation built on May 2, 2019, 7:28 a.m.

Related to sdF in ccfa...