Skip to contents

Period-level sufficient statistics used to reproduce the eventsurvey reanalysis of Epifanio, Giani, and Ivandic (2023). These are derived summaries, not the original respondent-level replication file. Each row contains a date's respondent count, outcome mean, and within-date sample variance.

Usage

published_examples

Format

A data frame with 274 rows and 8 variables:

study

Published study.

outcome

Outcome summarized.

event_date

Date of the event.

date

Interview date.

day

Calendar day relative to the event.

n

Number of non-missing responses.

mean

Daily sample mean.

variance

Daily sample variance; NA when n = 1.

Source

Epifanio, Giani, and Ivandic replication materials: doi:10.7910/DVN/AUHSMD .

Details

The Bateson–Weintraub application uses AmericasBarometer data that the package cannot redistribute. Its article instead provides a local data- preparation recipe for authorized users. See the package articles for source links, access conditions, outcome coding, and the distinction between the original studies and these reanalyses.

References

Bateson, Regina, and Michael Weintraub. 2022. "The 2016 Election and America's Standing Abroad: Quasi-experimental Evidence of a Trump Effect." Journal of Politics 84(4): 2300–2304. doi:10.1086/718209

Epifanio, Mariaelisa, Marco Giani, and Ria Ivandic. 2023. "Wait and See? Public Opinion Dynamics after Terrorist Attacks." Journal of Politics 85(3): 843–859. doi:10.1086/723020

Examples

if (requireNamespace("dplyr", quietly = TRUE)) {
  data(published_examples)
  published_examples |>
    dplyr::filter(grepl("privacy", outcome), dplyr::between(day, -5, 4))
}
#>                                  study
#> 1  Epifanio, Giani, and Ivandic (2023)
#> 2  Epifanio, Giani, and Ivandic (2023)
#> 3  Epifanio, Giani, and Ivandic (2023)
#> 4  Epifanio, Giani, and Ivandic (2023)
#> 5  Epifanio, Giani, and Ivandic (2023)
#> 6  Epifanio, Giani, and Ivandic (2023)
#> 7  Epifanio, Giani, and Ivandic (2023)
#> 8  Epifanio, Giani, and Ivandic (2023)
#> 9  Epifanio, Giani, and Ivandic (2023)
#> 10 Epifanio, Giani, and Ivandic (2023)
#>                                       outcome event_date       date day  n
#> 1  Support for restrictions on privacy rights 2005-07-07 2005-07-02  -5  2
#> 2  Support for restrictions on privacy rights 2005-07-07 2005-07-03  -4  1
#> 3  Support for restrictions on privacy rights 2005-07-07 2005-07-04  -3 23
#> 4  Support for restrictions on privacy rights 2005-07-07 2005-07-05  -2 26
#> 5  Support for restrictions on privacy rights 2005-07-07 2005-07-06  -1 22
#> 6  Support for restrictions on privacy rights 2005-07-07 2005-07-07   0 21
#> 7  Support for restrictions on privacy rights 2005-07-07 2005-07-08   1 16
#> 8  Support for restrictions on privacy rights 2005-07-07 2005-07-09   2  4
#> 9  Support for restrictions on privacy rights 2005-07-07 2005-07-10   3  1
#> 10 Support for restrictions on privacy rights 2005-07-07 2005-07-11   4 31
#>         mean   variance
#> 1  0.4324278 0.02566333
#> 2  0.3029646         NA
#> 3  0.4304160 0.04435941
#> 4  0.4914394 0.03930262
#> 5  0.4807576 0.03527923
#> 6  0.4948640 0.03739164
#> 7  0.4288350 0.03624233
#> 8  0.5190900 0.02141567
#> 9  0.0827012         NA
#> 10 0.5695015 0.04195249