F.Y1: F.Y1

Description Usage Arguments Value Examples

Description

calculate F(y|ytmin1), the conditional distribution of treated potential outcomes conditional on ytmin1; The order of the variables is due to the way that the function is called later on

Usage

1
F.Y1(ytmin1, y.seq, Y1t, Y0tmin1, h = NULL, method = "level")

Arguments

ytmin1

the value of ytmin1 to condition on

y.seq

possible values for y to take

Y1t

vector of outcomes for the treated group in period t

Y0tmin1

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

h

optional bandwidth

method

"level" or "rank" determining whether method should be used conditional on ytmin1 or the rank of ytmin1

Value

distribution F(y|ytmin1)

Examples

1
2
3
4
5
6
data(displacements)
ytmin1 <- 10
Y1t <- subset(displacements, year==2011 & treat==1)$learn
Y0tmin1 <- subset(displacements, year==2007 & treat==1)$learn
y.seq <- seq(min(c(Y0tmin1,Y1t)), max(c(Y0tmin1,Y1t)), length.out=100)
F.Y1(ytmin1, y.seq, Y1t, Y0tmin1)

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