R code to implement the propensity-score based sensitivity analysis approach introduced in Li L, Shen C, Wu AC, Li X. Propensity score-based sensitivity analysis method for uncontrolled confounding. American Journal of Epidemiology. 2011 Aug 1;174(3):345-53. doi: 10.1093/aje/kwr096. Epub 2011 Jun 9. The file "sensitivity_functions.R" contains the constant, linear, and quadratic sensitivity functions that were introduced in the paper. The file "Lindner.R" contains the R code for application of the sensitivity analysis approach to the "Lindner" dataset, which is included in the R package "twang".