data(c401k)
# Choose the first 100 units for a small example
c401k <- c401k[1:100,]
D <- c401k$p401k
Z <- c401k$e401k
X <- c401k[c("inc", "incsq", "marr", "male", "age", "agesq", "fsize" )]
Y <- c401k$nettfa
estimate <- larf(Y, D, X, Z, outcome = "continuous")
Run the code above in your browser using DataLab