Package: eventsurvey 0.4.2

Yusaku Horiuchi

eventsurvey: Causal Inference for Events During Surveys

Provides tools for estimating causal effects when an event occurs while a survey is in the field. The workflow models the unobserved no-event outcome path, evaluates short-horizon forecasts with rolling pre-event exercises, and reports inference that accounts for sampling uncertainty and bounded forecast misspecification.

Authors:Yusaku Horiuchi [aut, cre], Guoer Liu [aut], Jieun Oh [aut], Yuki Shiraito [aut]

eventsurvey_0.4.2.tar.gz
eventsurvey_0.4.2.zip(r-4.7-any)eventsurvey_0.4.2.zip(r-4.6-any)
eventsurvey_0.4.2.tar.gz(r-4.7-any)eventsurvey_0.4.2.tar.gz(r-4.6-any)
eventsurvey_0.4.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
eventsurvey/json (API)

# Install 'eventsurvey' in R:
install.packages('eventsurvey', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yhoriuchi/eventsurvey/issues

Pkgdown/docs site:https://yhoriuchi.github.io

Datasets:

On CRAN:

Conda:

3.78 score 4 exports 24 dependencies

Last updated from:36fdeebb8c. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK143
source / vignettesOK201
linux-releaseOK144
windows-develOK122
windows-releaseOK112
wasm-releaseOK119

Exports:eventsurveyeventsurvey_reporteventsurvey_summarysimulate_eventsurvey

Dependencies:clicpp11farverggplot2ggthemesgluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalestibbleutf8vctrsviridisLitewithr

Complete Example Workflow
Inspect coverage before fitting | Prespecify the forecasting operation | Interpret the two intervals | Minimum reporting checklist | Also see

Last update: 2026-12-04
Started: 2026-12-04

Covariate Adjustment
Add baseline predictors | Compare predictive performance | What is predicted and averaged? | Uncertainty and practical requirements

Last update: 2026-12-04
Started: 2026-12-04

Estimating from Period-Level Summary Data
Choose the function that matches the data | Required period-level structure | From respondent records to period summaries | Inspect and plot the result | Sparse periods and single responses | Published summary-data example | Also see

Last update: 2026-12-04
Started: 2026-12-04

Examples
Example reports | Compare average effects | Bateson and Weintraub (2022) | Daily effects | Epifanio, Giani, and Ivandic (2023) | Reproduce the reports | References | Also see

Last update: 2026-12-04
Started: 2026-12-04

Frequently Asked Questions
Is an event automatically as-if randomized? | Why not compare means before and after? | How much pre-event data are needed? | How does the package handle sparse survey dates? | What if there were no interviews on one day? | What should I do with the event day? | Does the package select the window automatically? | Why is the honest interval wider? | How is a period-average effect calibrated? | Can I add covariates or nonlinear trends? | Also see

Last update: 2026-12-04
Started: 2026-12-04

Getting Started
Install the current version | 1. Prepare respondent-level data | 2. Estimate the effect | Estimate the average effect over five days | 3. See what was extrapolated | 4. Inspect the forecasting diagnostic | Event-day conventions | Also see

Last update: 2026-12-04
Started: 2026-12-04

Methodology and Assumptions
Estimand | Identification | Estimand-specific calibration | Honest inference and why the construction still applies | Sampling covariance | What the interval does not solve | Also see

Last update: 2026-12-04
Started: 2026-12-04

Preparing Survey Fieldwork Data
Formula requirements | Dates | Event-period exposure | Outcomes and missingness | Sparse and irregular fieldwork | Also see

Last update: 2026-12-04
Started: 2026-12-04

Reading an HTML Report
A useful reading order | Main result | Automatic diagnostics | Observed and counterfactual outcomes | Period-specific effects | Forecast diagnostics | Survey coverage | Analysis settings and reproducibility | What the report does not establish | Also see

Last update: 2026-12-04
Started: 2026-12-04

Sensitivity Analysis
Also see

Last update: 2026-12-04
Started: 2026-12-04

Sparse Survey Schedules
Calibration and elapsed horizons | Create complete and sparse schedules | Inspect what the package detected | Compare the fitted counterfactuals | Require consecutive calendar days when appropriate | Also see

Last update: 2026-12-04
Started: 2026-12-04

Understanding Automatic Diagnostics
The five checks | Inspect the diagnostics | Sparse survey dates | Small period samples and pooled variance | Limited pre-event history | A compact review workflow | Also see

Last update: 2026-12-04
Started: 2026-12-04