F.Y1 {csabounds}R Documentation

F.Y1

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

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

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)


[Package csabounds version 1.0.0 Index]