Implementation of the nonparametric bounds for the average causal effect under an instrumental variable model by Balke and Pearl (Bounds on Treatment Effects from Studies with Imperfect Compliance, JASA, 1997, 92, 439, 1171-1176). The package can calculate bounds for a binary outcome, a binary treatment/phenotype, and an instrument with either 2 or 3 categories. The package implements bounds for situations where these 3 variables are measured in the same dataset (trivariate data) or where the outcome and instrument are measured in one study and the treatment/phenotype and instrument are measured in another study (bivariate data).
R package implementing the nonparametric bounds for the average causal effect of Balke and Pearl, JASA, 1997.
Install the released version of
bpbounds from CRAN:
Or install the development version from GitHub with:
# install.packages("devtools") # uncomment if devtools not installeddevtools::install_github("remlapmot/bpbounds")
To update the development version of the package, simply run this command again.
There is a Shiny app demonstrating the package at: https://remlapmot.shinyapps.io/bpbounds.
The helpfiles and vignette are shown at: https://remlapmot.github.io/bpbounds/.
Tom Palmer (maintainer, [email protected]), Roland Ramsahai, Vanessa Didelez, Nuala Sheehan
runExample()to launch the Shiny App included in ./inst/shiny-examples/myapp .
bpboundsStata command distributed with Palmer et al., Stata Journal, 2011, 11, 3, 345-367 https://www.stata-journal.com/article.html?article=st0232.