Causal Inference on Persuasion Effects

Provides estimation and inference methods for causal persuasion rates in the potential-outcomes framework of Jun and Lee (2023, Journal of Political Economy) . The package computes bounds and confidence intervals for average and local persuasion rates under data scenarios with binary outcomes, treatments, and instruments, and also when only the outcome and instrument are observed. It also provides functions for calculating bounds from summary statistics.


persuasio

persuasio estimates and bounds persuasion effects in instrumental variable settings with binary outcomes. You provide the outcome, the treatment, and the instrument, tell persuasio which estimand you want (average or local persuasion rate), and it takes care of the bounds and inference. Based on Jun and Lee (2023) https://doi.org/10.1086/724114.

Installation

You can install the development version of persuasio from GitHub with:

# install.packages("pak")
pak::pak("persuasio/persuasio-r")

Related Software

The original Stata implementation is available at https://github.com/persuasio/persuasio-stata and from SSC as persuasio.

Quick Example

library(persuasio)
## basic example code

# Average persuasion rate (APR): normal inference
persuasio(
  est     = "apr",
  y       = "voteddem_all",
  t       = "readsome",
  z       = "post",
  data    = GKB,
  level   = 0.80,
  method  = "normal"
)
#> 
#> Average persuasion rate for binary outcomes, binary treatments and binary instruments
#> 
#> Outcome:    voteddem_all
#> Treatment:  readsome
#> Instrument: post
#> Model:      no_interaction
#> Method:     normal
#> Observations: 701
#> 
#> Estimates:
#>  Lower Bound Upper Bound CI Lower CI Upper
#>       0.0707      0.6343   0.0288   0.6611
#> 
#> Confidence level: 80%

# Local persuasion rate (LPR): bootstrap inference
persuasio(
  est     = "lpr",
  y       = "voteddem_all",
  t       = "readsome",
  z       = "post",
  data    = GKB,
  level   = 0.80,
  method  = "bootstrap",
  nboot   = 1000
)
#> 
#> Local persuasion rate for binary outcomes, binary treatments and binary instruments 
#> 
#> Outcome:    voteddem_all
#> Treatment:  readsome
#> Instrument: post
#> Model:      no_interaction
#> Method:     bootstrap
#> Observations: 701
#> 
#> Estimates:
#>     LPR CI Lower CI Upper
#>  0.8067   0.0664        1
#> 
#> Confidence level: 80%
#> Bootstrap replications: 1000

Learn more

See vignette("getting-started", package = "persuasio") for a full walkthrough including covariates, model specifications, and the relationship between estimands.

Reference

Jun, Sung Jae, and Sokbae Lee. 2023. “Identifying the Effect of Persuasion.” Journal of Political Economy 131 (8): 2032-2058. https://doi.org/10.1086/724114.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("persuasio")

0.1.0 by Sokbae Lee, 2 months ago


https://github.com/persuasio/persuasio-r, https://github.com/persuasio/persuasio-stata


Report a bug at https://github.com/persuasio/persuasio-r/issues


Browse source code at https://github.com/cran/persuasio


Authors: Xinrui Chen [aut] , Sung Jae Jun [aut] , Sokbae Lee [aut, cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports stats

Suggests knitr, rmarkdown, testthat


See at CRAN