E.Y0: E.Y0

Description Usage Arguments Examples

View source: R/attcpo.R

Description

a function for computing the conditional expectation of Y_0t given particular value of y_tmin1 under the Copula Stability Assumption

Usage

1
E.Y0(ytmin1val, Y0tmin1, Y0tmin2, Y0tqteobj, h = NULL, method = "level")

Arguments

ytmin1val

the value to compute the conditional expectation for

Y0tmin1

a vector of untreated potential outcomes for the treated group in period t-1

Y0tmin2

a vector of untreated potential outcomes for the treated group in period t-2

Y0tqteobj

a qte object which should have set F.treated.t.cf which is the counterfactual distribution of untreated potential outcomes for the treated group in period t

h

optional bandwidth paramater

method

can be "level" or "rank", whether the conditional expectation is based on the level of Y0tmin1 or its rank

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(displacements)
ytmin1 <- 10
Y0tmin1 <- subset(displacements, year==2007 & treat==1)$learn
Y0tmin2 <- subset(displacements, year==2003 & treat==1)$learn
cc <- qte::CiC(learn ~ treat,
               t=2011, tmin1=2007, tname="year",
               idname="id", panel=TRUE, data=displacements,
               probs=seq(.05,.95,.01),se=FALSE)
cc$F.treated.tmin2 <- ecdf(subset(displacements, year==2003 & treat==1)$learn)
cc$F.treated.tmin1 <- ecdf(subset(displacements, year==2007 & treat==1)$learn)
E.Y0(ytmin1, Y0tmin1, Y0tmin2, cc)

csabounds documentation built on May 1, 2019, 8:47 p.m.