A ready-to-use event-during-survey dataset generated from
simulate_eventsurvey() with seed = 10. Its latent continuous outcome is
coded into a five-category survey response. It provides a simple first
example for eventsurvey() without requiring users to prepare or simulate
data before fitting a model. It contains only variables that would be
observed in an actual survey; the true simulated counterfactual and effect
are intentionally omitted.
Format
A data frame with 1,496 rows and 2 variables:
- day
Interview day relative to the event. Negative values are pre-event, 0 is the event day, and positive values are post-event.
- y
Integer-coded five-category survey response from 1 (lowest) to 5 (highest).
Source
Generated from simulate_eventsurvey(seed = 10) and coded using
fixed latent-response thresholds at 45, 48, 51, and 54.
Examples
fit <- eventsurvey(y ~ day, sample_data)
fit
#> Event-during-survey estimate
#> Formula: y ~ day
#> Window: 6 periods | average-calibration references: 108
#> Period schedule: observed | missing pre/forecast periods: 0 / 0
#> Calibration: estimand
#> Average effect: 0.234
#> Honest 95% CI: [-1.849, 2.435]
#> Diagnostics: 0 of 5 checks need review