---
title: "Frequently Asked Questions"
description: "Find concise answers to common questions about study design, data, estimation, and interpretation."
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Frequently Asked Questions}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, include = FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
```
## Is an event automatically as-if randomized?
No. Identification still depends on the fieldwork design and explicit assumptions.
No. Surprise does not rule out time trends, changes in who answers the survey,
or other contemporaneous events. Identification depends on the fieldwork
design and explicit assumptions, not the label attached to the event.
## Why not compare means before and after?
A simple before/after comparison assumes that the no-event outcome would have stayed constant.
That comparison assumes the no-event outcome would have been constant. A
linear extrapolation allows a short-run pre-existing trend and makes its
forecast performance inspectable.
## How much pre-event data are needed?
The default requires twice the window length plus one period.
With the default `event_day = "exclude"`, use at least twice the chosen window
length plus one observed pre-event period. A window of six therefore requires
at least 13 observed pre-event periods. The extra period lets each rolling
diagnostic reproduce the one-period gap at the event. More history produces
more matched reference forecasts and a more informative diagnostic.
If `event_day = "include"` is substantively justified, twice the window length
is the minimum requirement because there is no skipped period.
Sparse schedules can require more history to obtain a complete window with
the final elapsed forecast horizons.
## How does the package handle sparse survey dates?
Sparse observed dates are supported by default, without interpolation.
The default fits successive observed survey periods and calibrates using
complete pre-event windows that match the final elapsed forecast horizons.
Actual time values enter the model, and gaps are not compressed or
interpolated. It stops if no complete matching window exists.
## What if there were no interviews on one day?
The package records the gap and uses the remaining observed periods.
The package records the date
in `fit$settings$missing_pre_periods` or
`fit$settings$missing_forecast_periods`. It does not interpolate an outcome for
the empty date. Use `fit$windows` and the fitted settings to inspect elapsed
fitting and forecasting spans. Estimand-specific calibration requires at least
one complete pre-event window matching the final elapsed horizons; otherwise
it stops with an explanation. If uninterrupted dates are required by the
design, set `schedule = "consecutive"`; the package then stops and identifies
the gaps.
## What should I do with the event day?
Exclude it by default unless exposure during that period is clear.
The default `event_day = "exclude"` begins forecasting in the first observed
period after the event. This is the safer convention because respondents may
have been interviewed before, during, or after the event within period 0. Use
`event_day = "include"` only when those respondents can defensibly be treated
as exposed. If period 0 belongs in the aggregate estimand but its day-specific
display is not useful, combine `event_day = "include"` with
`report_event_day = FALSE` and explain that choice.
## Does the package select the window automatically?
No. Choose and preferably prespecify a substantively defensible window.
No. Choose it from subject-matter knowledge and, ideally, prespecify it. Report
sensitivity over plausible choices rather than optimizing significance.
## Why is the honest interval wider?
It accounts for sampling variation and calibrated extrapolation error.
The conventional interval accounts only for sampling variation conditional on
the line being correct. The honest interval also allows calibrated forecast
error.
## How is a period-average effect calibrated?
Calibrate each day separately, then aggregate with equal day weights.
Matching-horizon errors calibrate each day's bias bound. The average effect
and bias bound are the means of the corresponding daily quantities. Prediction
errors are not averaged across days before calibration. The average standard
error includes cross-day covariance from the shared pre-event fit. The average
honest interval uses Bonferroni-adjusted daily intervals before aggregation;
ordinary daily intervals remain pointwise. See [Methodology](methodology.html).
## Can I add covariates or nonlinear trends?
Yes to additive baseline covariates; nonlinear time trends remain unsupported.
Use `eventsurvey(y ~ day + age + education, data)` with time first and
untransformed columns. Numeric covariates enter linearly; categorical columns
enter as indicators. Every fitting window must identify all coefficients,
and each used period needs at least two complete responses.
Forecasts use each forecast period's covariate distribution. Use baseline
characteristics that cannot be affected by the event, and examine rolling
forecast errors: adding covariates need not improve out-of-sample fit or
precision. See [Covariate Adjustment](covariate-adjustment.html).
`eventsurvey_summary()` remains time-only because counts, outcome means, and
outcome variances omit the necessary joint information. Formula transformations,
nonlinear time terms, and interactions remain unsupported. A substantively justified transformed
outcome may be created as an explicit numeric column before fitting; the
reported effect is then in that column's units.
## Also see
- [Getting Started](getting-started.html) for the shortest path to an estimate
and report.
- [Methodology and Assumptions](methodology.html) for the full identification
and inference discussion.
- [Reading an HTML Report](reading-html-reports.html) for interpretation of
package output and diagnostics.