# \donttest{
data(LL)
set.seed(123)
m74 <- max(LL$re74, na.rm=TRUE)
s74 <- seq(0,m74,by=sd(LL$re74))
l74 <- length(s74)
if(max(s74) < m74) s74 <- c(s74, m74)
m75 <- max(LL$re75, na.rm=TRUE)
s75 <- seq(0,m75,by=sd(LL$re75))
l75 <- length(s75)
if(max(s75) < m75) s75 <- c(s75, m75)
mybr = list(re74=s74,
re75 = s75,
age = hist(LL$age,plot=FALSE)$breaks,
education = hist(LL$education,plot=FALSE)$breaks)
mat <- cem(treatment="treated",data=LL, drop="re78",cut=mybr)
mat
shift.cem(mat, data=LL, shifts=seq(0.01, 0.5, length=10), verb=1)
# }
Run the code above in your browser using DataLab