| Title: | Causal Inference on Persuasion Effects |
|---|---|
| Description: | Provides estimation and inference methods for causal persuasion rates in the potential-outcomes framework of Jun and Lee (2023, Journal of Political Economy) <doi:10.1086/724114>. 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. |
| Authors: | Xinrui Chen [aut], Sung Jae Jun [aut], Sokbae Lee [aut, cre] |
| Maintainer: | Sokbae Lee <[email protected]> |
| License: | GPL (>= 3) |
| Version: | 0.1.0 |
| Built: | 2026-10-05 10:30:48 UTC |
| Source: | https://github.com/persuasio/persuasio-r |
Estimates the lower bound on the average persuasion rate (APR)
following Jun and Lee (2023). Requires a binary outcome and a binary
instrument. Covariates may optionally be supplied, in which case separate
models are fit on the z = 1 and z = 0 subgroups and standard errors are not
available. With covariates, there are two model specifications:
no_interactionand interaction.
aprlb(y, z, x = NULL, model = "no_interaction", data)aprlb(y, z, x = NULL, model = "no_interaction", data)
y |
character, outcome variable name (binary 0/1) |
z |
character, instrument variable name (binary 0/1) |
x |
optional character, vector of covariates. Defaults to |
model |
model specification: "no_interaction" or "interaction". Defaults
to |
data |
data.frame containing variables |
A list with:
lb_coef: Lower bound estimate of the Average Persuasion Rate
lb_se: Standard error of the estimate (NA under interaction model)
ci_lb: Lower bound of the 95\
ci_ub: Upper bound of the 95\
outcome: Outcome variable name
instrument: Instrument variable name
covariates: Covariates used in estimation
model: Model specification used
n: Sample size
class: S3 class label ("aprlb")
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
# Example 1: No covariates aprlb(y = "voteddem_all", z = "post", data = GKB) # Example 2: With covariate aprlb(y = "voteddem_all", z = "post", x = "MZwave2", data = GKB) # Example 3: Estimate by the covariate gkb_groups <- split(GKB, GKB$MZwave2) lapply(gkb_groups, function(sub_data) { aprlb(y = "voteddem_all", z = "post", data = sub_data) })# Example 1: No covariates aprlb(y = "voteddem_all", z = "post", data = GKB) # Example 2: With covariate aprlb(y = "voteddem_all", z = "post", x = "MZwave2", data = GKB) # Example 3: Estimate by the covariate gkb_groups <- split(GKB, GKB$MZwave2) lapply(gkb_groups, function(sub_data) { aprlb(y = "voteddem_all", z = "post", data = sub_data) })
Estimates the upper bound on the average persuasion rate (APR)
following Jun and Lee (2023). Requires a binary outcome, a binary
treatment, and a binary instrument. Covariates may optionally be supplied,
in which case separate models are fit on the z = 1 and z = 0 subgroups and
standard errors are not available. With covariates, there are two model
specifications: no_interactionand interaction.
aprub(y, t, z, x = NULL, model = "no_interaction", data)aprub(y, t, z, x = NULL, model = "no_interaction", data)
y |
character, outcome variable name (binary 0/1) |
t |
character, treatment variable name (binary 0/1) |
z |
character, instrument variable name (binary 0/1) |
x |
optional character, vector of covariates. Defaults to |
model |
character, model specification: "no_interaction" or "interaction". Defaults
to |
data |
data.frame containing variables |
A list with:
ub_coef: Upper bound estimate of APR
ub_se: Standard error (NA if covariates are used)
ci_lb: Lower bound of 95\
ci_ub: Upper bound of 95\
outcome: Outcome variable name
treatment: Treatment variable name
instrument: Instrument variable name
covariates: Covariates used (if any)
model: Model specification
n: Sample size
class: S3 class label ("aprub")
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
# Example 1: No covariates aprub(y = "voteddem_all", t = "readsome", z = "post", data = GKB) # Example 2: With covariate aprub(y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", data = GKB) # Example 3: Estimate by the covariate gkb_groups <- split(GKB, GKB$MZwave2) lapply(gkb_groups, function(sub_data) { aprub(y = "voteddem_all", t = "readsome", z = "post", data = sub_data) })# Example 1: No covariates aprub(y = "voteddem_all", t = "readsome", z = "post", data = GKB) # Example 2: With covariate aprub(y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", data = GKB) # Example 3: Estimate by the covariate gkb_groups <- split(GKB, GKB$MZwave2) lapply(gkb_groups, function(sub_data) { aprub(y = "voteddem_all", t = "readsome", z = "post", data = sub_data) })
calc4persuasio calculates the effect of persuasion when information on
Pr(y=1|z) and optimally Pr(t=1|z) for each z=0,1 is available. The inputs are
y1, y0, e1, and e0, corresponding to estimates of ,
, , and .
calc4persuasio(y1, y0, e1 = NULL, e0 = NULL)calc4persuasio(y1, y0, e1 = NULL, e0 = NULL)
y1 |
mean outcome under z = 1 |
y0 |
mean outcome under z = 0 |
e1 |
(optional) mean treatment under z = 1 |
e0 |
(optional) mean treatment under z = 0 |
The outputs of this command are the lower and upper bounds on the average persuasion rate (APR) as well as the lower and upper bounds on the local persuasion rate (LPR).
An object of class calc4persuasio, a list containing:
apr |
numeric vector: lower and upper bound |
lpr |
numeric vector: lower and upper bound |
inputs |
input values |
case |
case identifier |
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
# Compute group means from the GKB dataset first voteddem_all_0 <- mean(GKB$voteddem_all[GKB$post == 0], na.rm = TRUE) voteddem_all_1 <- mean(GKB$voteddem_all[GKB$post == 1], na.rm = TRUE) readsome_0 <- mean(GKB$readsome[GKB$post == 0], na.rm = TRUE) readsome_1 <- mean(GKB$readsome[GKB$post == 1], na.rm = TRUE) # Estimate bounds from summary statistics calc4persuasio( y1 = voteddem_all_1, y0 = voteddem_all_0, e1 = readsome_1, e0 = readsome_0 )# Compute group means from the GKB dataset first voteddem_all_0 <- mean(GKB$voteddem_all[GKB$post == 0], na.rm = TRUE) voteddem_all_1 <- mean(GKB$voteddem_all[GKB$post == 1], na.rm = TRUE) readsome_0 <- mean(GKB$readsome[GKB$post == 0], na.rm = TRUE) readsome_1 <- mean(GKB$readsome[GKB$post == 1], na.rm = TRUE) # Estimate bounds from summary statistics calc4persuasio( y1 = voteddem_all_1, y0 = voteddem_all_0, e1 = readsome_1, e0 = readsome_0 )
Dataset from Gerber, Karlan, and Bergan (2009). The study examines the effect of media exposure on political behavior via a randomized experiment offering households in Prince William County, VA free ten-week subscriptions to the Washington Post (liberal) or the Washington Times (conservative). The authors administered a baseline survey one month before the November 2005 Virginia gubernatorial election, and a follow-up survey a week after the election, covering individuals' voting behavior, candidate preference, political attitudes, and knowledge of recent news events.
GKBGKB
A data frame with 701 rows and 4 variables:
indicator (outcome): equal to 1 if the individual voted for the Democratic candidate
indicator (treatment): equal to 1 if the individual read a newspaper at least several times per week
indicator (instrument): equal to 1 if the individual received a free subscription to the Washington Post
indicator (covariate): equal to 1 if the individual was assigned to the second wave of the experiment
To demonstrate functions in the this package, we use a
simplified subset of Washington Post subscribers who responded to the
follow-up survey (n = 701). The outcome is voting for the Democratic
candidate in the 2005 Virginia gubernatorial election. The experiment
ran in two waves a week apart due to capacity constraints, with wave
assignment recorded in MZwave2. This data subset is also used in
Jun and Lee (2023).
Gerber, A., Karlan, D. and Bergan, D. (2009) Data and Code for: Does the Media Matter? A Field Experiment Measuring the Effect of Newspapers on Voting Behavior and Political Opinions. Ann Arbor, MI: Inter-university Consortium for Political and Social Research, 2019-10-12. doi:10.3886/E113559V1
Gerber, A., Karlan, D. and Bergan, D. (2009). Does the Media Matter? A Field Experiment Measuring the Effect of Newspapers on Voting Behavior and Political Opinions. American Economic Journal: Applied Economics, 1(2), 35-52. doi:10.1257/app.1.2.35
Estimates the local persuasion rate (LPR) for compliers. Requires a
binary outcome y, a binary treatment t, and a binary
instrument z. Covariates x are optional. When covariates
are absent, the function returns standard errors and confidence intervals.
With covariates, model = "no_interaction" fits one regression with
z and x; model = "interaction" fits separate models by
instrument group and does not report analytical standard errors.
lpr4ytz(y, t, z, x = NULL, model = "no_interaction", data)lpr4ytz(y, t, z, x = NULL, model = "no_interaction", data)
y |
character, outcome variable name (binary 0/1) |
t |
character, treatment variable name (binary 0/1) |
z |
character, instrument variable name (binary 0/1) |
x |
optional character, vector of covariates. Defaults to |
model |
character, model specification: "no_interaction" or "interaction". Defaults
to |
data |
data.frame containing variables |
A list with:
lpr: Estimated Local Persuasion Rate
se: Standard error of the estimate (NA under interaction model)
ci_lb: Lower bound of the confidence interval
ci_ub: Upper bound of the confidence interval
n: Sample size
outcome: Outcome variable name
treatment: Treatment variable name
instrument: Instrument variable name
covariates: Covariates used in estimation
model: Model specification used
case: Estimation case used ("interaction" or "no_interaction")
class: S3 class label ("lpr4ytz")
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
# Example 1: No covariates lpr4ytz( y = "voteddem_all", t = "readsome", z = "post", data = GKB ) # Example 2: With covariate, no-interaction model lpr4ytz( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", data = GKB ) # Example 3: With covariate, interaction model lpr4ytz( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", model = "interaction", data = GKB )# Example 1: No covariates lpr4ytz( y = "voteddem_all", t = "readsome", z = "post", data = GKB ) # Example 2: With covariate, no-interaction model lpr4ytz( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", data = GKB ) # Example 3: With covariate, interaction model lpr4ytz( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", model = "interaction", data = GKB )
Main wrapper for the persuasio package. Provides a unified
entry point to all persuasion effect estimators. The function parses inputs
and dispatches to the appropriate estimator based on est. The
variables y, t, z, and x can be supplied in any
order as explicitly named arguments. For est = "apr", "lpr",
and "calc", supplying y (outcome), t (treatment), and
z (instrument) is mandatory. For est = "yz", where the
treatment is unobserved, only y and z are required, while the
treatment argument t is ignored. Optional covariates can be supplied
to x for any estimator mode.
persuasio( est = c("apr", "lpr", "yz", "calc"), y, z, t = NULL, x = NULL, data, ... )persuasio( est = c("apr", "lpr", "yz", "calc"), y, z, t = NULL, x = NULL, data, ... )
est |
character. Estimator type:
|
y |
character, outcome variable name (binary 0/1) |
z |
character, instrument variable name (binary 0/1) |
t |
character, treatment variable name (binary 0/1). Required for
|
x |
optional character, vector of covariates Defaults to |
data |
data.frame containing variables |
... |
additional arguments passed to downstream estimators |
This function only performs:
input parsing
method dispatch
An object of class depending on est:
"apr": APR estimation object
"lpr": LPR estimation object
"yz": reduced-form bound object
"calc": summary-statistics-based object
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
aprlb, aprub, lpr4ytz,
calc4persuasio
# Example 1: Average persuasion rate (APR) with normal inference persuasio( est = "apr", y = "voteddem_all", t = "readsome", z = "post", level = 0.80, method = "normal", data = GKB ) # Example 2: Local persuasion rate (LPR) with normal inference persuasio( est = "lpr", y = "voteddem_all", t = "readsome", z = "post", level = 0.80, method = "normal", data = GKB ) # Example 3: Outcome-instrument bounds with covariate and bootstrap inference persuasio( est = "yz", y = "voteddem_all", z = "post", x = "MZwave2", level = 0.80, model = "interaction", method = "bootstrap", nboot = 1000, data = GKB )# Example 1: Average persuasion rate (APR) with normal inference persuasio( est = "apr", y = "voteddem_all", t = "readsome", z = "post", level = 0.80, method = "normal", data = GKB ) # Example 2: Local persuasion rate (LPR) with normal inference persuasio( est = "lpr", y = "voteddem_all", t = "readsome", z = "post", level = 0.80, method = "normal", data = GKB ) # Example 3: Outcome-instrument bounds with covariate and bootstrap inference persuasio( est = "yz", y = "voteddem_all", z = "post", x = "MZwave2", level = 0.80, model = "interaction", method = "bootstrap", nboot = 1000, data = GKB )
Estimates the Average Persuasion Rate (APR) and constructs
confidence intervals for binary outcome y, binary treatment
t, and binary instrument z. Combines lower and upper bound
estimation via aprlb and aprub with inference
using either a Stoye (2009)-style asymptotic normal approximation or
bootstrap resampling.
When covariates are absent, both inference methods are available. When
covariates are present, method = "bootstrap" is recommended as
standard errors are not available analytically.
This function combines:
lower bound estimation via aprlb()
upper bound estimation via aprub()
inference using either Stoye-style normal approximation or bootstrap
persuasio4ytz( y, t, z, x = NULL, model = "no_interaction", method = "normal", level = 0.95, nboot = 50, data )persuasio4ytz( y, t, z, x = NULL, model = "no_interaction", method = "normal", level = 0.95, nboot = 50, data )
y |
character, outcome variable name (binary 0/1) |
t |
character, treatment variable name (binary 0/1) |
z |
character, instrument variable name (binary 0/1) |
x |
optional character, vector of covariates. Defaults to |
model |
model specification: |
method |
inference method: |
level |
confidence level (default 0.95) |
nboot |
number of bootstrap replications (default 50) |
data |
data.frame containing variables |
When method = "normal", the function uses a Stoye
(2009)-style correction for partially identified parameters. Standard errors
from both aprlb and aprub are available only when
there are no covariates.
When method = "bootstrap", the function constructs confidence
intervals from empirical quantiles of bootstrap replicates of the bound
estimates. This is the recommended approach when covariates are present or
when the sample size is small.
An object of class persuasio4ytz containing:
lower bound estimate
upper bound estimate
lower confidence bound
upper confidence bound
confidence level
inference method used
sample size
Y variable name
T variable name
Z variable name
covariates used
model specification
number of bootstrap draws (if applicable)
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
aprlb, aprub, lpr4ytz,
persuasio
# Example 1: No covariates, normal inference persuasio4ytz( y = "voteddem_all", t = "readsome", z = "post", method = "normal", level = 0.80, data = GKB ) # Example 2: No covariates, bootstrap inference persuasio4ytz( y = "voteddem_all", t = "readsome", z = "post", method = "bootstrap", level = 0.80, nboot = 100, data = GKB ) # Example 3: With covariate, interaction model, bootstrap inference persuasio4ytz( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", model = "interaction", method = "bootstrap", level = 0.80, nboot = 100, data = GKB )# Example 1: No covariates, normal inference persuasio4ytz( y = "voteddem_all", t = "readsome", z = "post", method = "normal", level = 0.80, data = GKB ) # Example 2: No covariates, bootstrap inference persuasio4ytz( y = "voteddem_all", t = "readsome", z = "post", method = "bootstrap", level = 0.80, nboot = 100, data = GKB ) # Example 3: With covariate, interaction model, bootstrap inference persuasio4ytz( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", model = "interaction", method = "bootstrap", level = 0.80, nboot = 100, data = GKB )
Estimates the Local Persuasion Rate (LPR) and constructs
confidence intervals for binary outcome y, binary treatment
t, and binary instrument z. Wraps lpr4ytz
for point estimation and performs inference using either a standard
normal approximation or bootstrap resampling.
The LPR measures the persuasion effect among compliers — those whose
treatment status is switched by the instrument. Unlike the APR (see
persuasio4ytz), the LPR is a point-identified quantity
under the assumptions of Jun and Lee (2023), so a single confidence
interval rather than a bound interval is returned.
When covariates are absent and method = "normal", a delta-method
standard error from lpr4ytz is used. When covariates are
present, bootstrap inference is recommended and is required when analytical
standard errors are unavailable, such as under model = "interaction".
persuasio4ytz2lpr( y, t, z, x = NULL, model = "no_interaction", method = "normal", level = 0.95, nboot = 50, data )persuasio4ytz2lpr( y, t, z, x = NULL, model = "no_interaction", method = "normal", level = 0.95, nboot = 50, data )
y |
character, outcome variable name (binary 0/1) |
t |
character, treatment variable name (binary 0/1) |
z |
character, instrument variable name (binary 0/1) |
x |
optional character, vector of covariates. Defaults to |
model |
model specification: |
method |
inference method: |
level |
confidence level (default 0.95) |
nboot |
number of bootstrap replications (default 50) |
data |
data.frame containing variables |
When method = "normal", the confidence interval is constructed as
where is the delta-method standard error returned by
lpr4ytz. This requires se to be non-missing; if
se = NA, the normal method is not available and
method = "bootstrap" must be used.
When method = "bootstrap", the confidence interval is constructed
from empirical quantiles of bootstrap replications of the LPR estimate.
For reproducible bootstrap results, call set.seed() before running
this function.
An object of class persuasio4ytz2lpr containing:
local persuasion rate estimate
lower confidence bound
upper confidence bound
standard error (NA if bootstrap)
confidence level
inference method used
sample size
Y variable name
T variable name
Z variable name
covariates used
model specification
number of bootstrap replications (if applicable)
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
lpr4ytz, persuasio4ytz,
persuasio
# Example 1: No covariates, normal inference persuasio4ytz2lpr( y = "voteddem_all", t = "readsome", z = "post", method = "normal", level = 0.80, data = GKB ) # Example 2: No covariates, bootstrap inference persuasio4ytz2lpr( y = "voteddem_all", t = "readsome", z = "post", method = "bootstrap", level = 0.80, nboot = 100, data = GKB ) # Example 3: With covariate, interaction model, bootstrap inference persuasio4ytz2lpr( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", model = "interaction", method = "bootstrap", level = 0.80, nboot = 100, data = GKB )# Example 1: No covariates, normal inference persuasio4ytz2lpr( y = "voteddem_all", t = "readsome", z = "post", method = "normal", level = 0.80, data = GKB ) # Example 2: No covariates, bootstrap inference persuasio4ytz2lpr( y = "voteddem_all", t = "readsome", z = "post", method = "bootstrap", level = 0.80, nboot = 100, data = GKB ) # Example 3: With covariate, interaction model, bootstrap inference persuasio4ytz2lpr( y = "voteddem_all", t = "readsome", z = "post", x = "MZwave2", model = "interaction", method = "bootstrap", level = 0.80, nboot = 100, data = GKB )
Estimates bounds on the Average Persuasion Rate (APR) using only
a binary outcome y and a binary instrument z. Combines lower
and upper bound estimation via aprlb and aprub
under the YZ formulation with inference using either a Stoye (2009)-style
normal approximation or bootstrap resampling.
This function is appropriate when treatment variables are unavailable
or when the researcher wishes to bound the APR using only the
reduced-form relationship between the instrument and the outcome. When
treatment data are available, use persuasio4ytz instead.
When covariates are absent, both inference methods are available. When
covariates are present, analytic standard errors are unavailable and
method = "bootstrap" is required.
persuasio4yz( y, z, x = NULL, model = "no_interaction", method = "normal", level = 0.95, nboot = 50, data )persuasio4yz( y, z, x = NULL, model = "no_interaction", method = "normal", level = 0.95, nboot = 50, data )
y |
character, outcome variable name (binary 0/1) |
z |
character, instrument variable name (binary 0/1) |
x |
optional character, vector of covariates. Defaults to |
model |
model specification: |
method |
inference method: |
level |
confidence level (default 0.95) |
nboot |
number of bootstrap replications (default 50) |
data |
data.frame containing variables |
When method = "normal", the function applies a Stoye (2009)-style
correction using the analytical standard error for the lower-bound estimator
returned by aprlb. The upper bound is fixed at 1. If the lower
bound standard error is unavailable, use method = "bootstrap" instead.
When method = "bootstrap", the function constructs the confidence
interval from empirical quantiles of jointly resampled lower and upper bound
estimates. For reproducible bootstrap results, call set.seed() before
running this function.
An object of class persuasio4yz containing:
lower bound estimate
upper bound estimate
lower confidence bound
upper confidence bound
confidence level
inference method used
sample size
Y variable name
Z variable name
covariates used
model specification
number of bootstrap replications (if applicable)
Sung Jae Jun and Sokbae Lee (2023). Identifying the Effect of Persuasion. Journal of Political Economy, 131(8). https://doi.org/10.1086/724114
aprlb, aprub,
persuasio4ytz, persuasio
# Example 1: No covariates, normal inference persuasio4yz( y = "voteddem_all", z = "post", method = "normal", level = 0.80, data = GKB ) # Example 2: No covariates, bootstrap inference persuasio4yz( y = "voteddem_all", z = "post", method = "bootstrap", level = 0.80, nboot = 1000, data = GKB ) # Example 3: With covariate, interaction model, bootstrap inference persuasio4yz( y = "voteddem_all", z = "post", x = "MZwave2", model = "interaction", method = "bootstrap", level = 0.80, nboot = 1000, data = GKB )# Example 1: No covariates, normal inference persuasio4yz( y = "voteddem_all", z = "post", method = "normal", level = 0.80, data = GKB ) # Example 2: No covariates, bootstrap inference persuasio4yz( y = "voteddem_all", z = "post", method = "bootstrap", level = 0.80, nboot = 1000, data = GKB ) # Example 3: With covariate, interaction model, bootstrap inference persuasio4yz( y = "voteddem_all", z = "post", x = "MZwave2", model = "interaction", method = "bootstrap", level = 0.80, nboot = 1000, data = GKB )
Print method for aprlb objects
## S3 method for class 'aprlb' print(x, digits = 4, ...)## S3 method for class 'aprlb' print(x, digits = 4, ...)
x |
object of class "aprlb" |
digits |
number of decimal places to display (default is 4) |
... |
unused |
Invisibly returns x. Called for its side effect of printing
a formatted summary of the lower bound estimate on the average persuasion
rate, including the estimate, standard error, and confidence interval.
Print method for aprub objects
## S3 method for class 'aprub' print(x, digits = 4, ...)## S3 method for class 'aprub' print(x, digits = 4, ...)
x |
object of class "aprub" |
digits |
number of decimal places to display (default is 4) |
... |
unused |
Invisibly returns x. Called for its side effect of printing
a formatted summary of the upper bound estimate on the average persuasion
rate, including the estimate, standard error, and confidence interval.
Print method for calc4persuasio
## S3 method for class 'calc4persuasio' print(x, digits = 4, ...)## S3 method for class 'calc4persuasio' print(x, digits = 4, ...)
x |
object of class "calc4persuasio" |
digits |
number of decimal places to display (default is 4) |
... |
unused |
Invisibly returns x. Called for its side effect of printing a
formatted summary of APR and LPR bounds computed from summary statistics,
together with the input probabilities.
Print method for lpr4ytz objects
## S3 method for class 'lpr4ytz' print(x, digits = 4, ...)## S3 method for class 'lpr4ytz' print(x, digits = 4, ...)
x |
object of class "lpr4ytz" |
digits |
number of decimal places to display (default is 4) |
... |
unused |
Invisibly returns x. Called for its side effect of printing a
formatted summary of the local persuasion rate estimate, standard error,
and confidence interval.
Print method for persuasio4ytz
## S3 method for class 'persuasio4ytz' print(x, digits = 4, ...)## S3 method for class 'persuasio4ytz' print(x, digits = 4, ...)
x |
object of class "persuasio4ytz" |
digits |
number of decimal places to display (default is 4) |
... |
unused |
Invisibly returns x. Called for its side effect of printing a
formatted summary of the average persuasion rate estimate.
Print method for persuasio4ytz2lpr
## S3 method for class 'persuasio4ytz2lpr' print(x, digits = 4, ...)## S3 method for class 'persuasio4ytz2lpr' print(x, digits = 4, ...)
x |
object of class "persuasio4ytz2lpr" |
digits |
number of decimal places to display (default is 4) |
... |
unused |
Invisibly returns x. Called for its side effect of printing a
formatted summary of the local persuasion rate estimate.
Print method for persuasio4yz
## S3 method for class 'persuasio4yz' print(x, digits = 4, ...)## S3 method for class 'persuasio4yz' print(x, digits = 4, ...)
x |
object of class "persuasio4yz" |
digits |
number of decimal places to display (default is 4) |
... |
unused |
Invisibly returns x. Called for its side effect of printing
a formatted summary of the average persuasion rate estimate.