Skip to contents

Plot an event-during-survey analysis

Usage

# S3 method for class 'eventsurvey'
plot(
  x,
  type = c("counterfactual", "effects", "diagnostics", "coverage", "daily", "counts"),
  inner_level = NULL,
  ...
)

Arguments

x

An eventsurvey object.

type

Plot type: the observed and extrapolated outcome path, period-specific effects, rolling reference errors, combined outcome and response coverage, all period means, or respondent counts by period. In the combined coverage plot, gray bars are scaled relative to the largest period sample and placed in a strip below the observed outcome series. A blue dashed vertical line marks event period 0 in every time-axis plot.

inner_level

Optional inner confidence level for an effects plot, such as 0.90 when the fitted object contains 95% intervals. The outer interval uses the confidence level supplied when fitting the object.

...

Unused.

Value

A ggplot2 object.