data(nh0506)
attach(nh0506)
#optimal caliper using the propensity score alone
optcal(z,propens,tol=0.1,rank=FALSE)
#optimal caliper using the rank of propensity score
#and match each treated subject with two controls
# \donttest{
optcal(z,propens,ncontrol=2,rank=TRUE)
# }
#optimal caliper for the propensity score while requiring
#an exact match for female
optcal(z,propens,exact=female,tol=0.1,rank=FALSE)
detach(nh0506)
Run the code above in your browser using DataLab