E.Y1: E.Y1

Description Usage Arguments Value Examples

View source: R/attcpo.R

Description

a function for computing the conditional expectation of Y_1t given a value for Y_0tmin1

Usage

1
E.Y1(ytmin1val, Y1t, Y0tmin1, h = NULL, method = "level")

Arguments

ytmin1val

scalar value to compute conditional expectation for

Y1t

vector of treated potential outcomes for the treated group in period t

Y0tmin1

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

h

optional bandwidth paramater

method

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

Value

the conditional expectation of y1 conditional on y0tmin1

Examples

1
2
3
4
5
data(displacements)
ytmin1 <- 10
Y1t <- subset(displacements, year==2011 & treat==1)$learn
Y0tmin1 <- subset(displacements, year==2007 & treat==1)$learn
E.Y1(ytmin1, Y1t, Y0tmin1)

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