Skip to contents

[Stable]

absolute_value.plot returns chart for daily absolute values using GeoLift output.

Usage

absolute_value.plot(
  GeoLift,
  plot_type = "ATT",
  treatment_end_date = NULL,
  frequency = "daily",
  plot_start_date = NULL,
  title = "",
  subtitle = "",
  notes = "",
  ROPE = FALSE,
  post_treatment_periods = 0,
  ...
)

Arguments

GeoLift

GeoLift object.

plot_type

Can be either ATT or Incrementality. Defaults to ATT.

treatment_end_date

Character that represents a date in year-month-day format.

frequency

Character that represents periodicity of time stamps. Can be either weekly or daily. Defaults to daily.

plot_start_date

Character that represents initial date of plot in year-month-day format.

title

Character for the title of the plot. NULL by default.

subtitle

Character for the subtitle of the plot. NULL by default.

notes

String to add notes to the plot. Empty by default.

ROPE

A logic flag indicating whether to plot the region of practical equivalence (ROPE) at a 90% percentile. FALSE by default.

post_treatment_periods

Number of post-treatment periods. Zero by default.

...

additional arguments

Value

Daily Incremental or ATT plot.

Examples

# \donttest{
geo_test <- GeoDataRead(GeoLift_Test, date_id = "date", location_id = "location",
  Y_id = "Y", format = "yyyy-mm-dd")
lift <- GeoLift(Y_id = "Y", data = geo_test, locations = c("chicago", "portland"),
  treatment_start_time = 91, treatment_end_time = 105)
absolute_value.plot(lift, plot_type = "ATT")
#> You can include dates in your chart if you supply the end date of the treatment. Just specify the treatment_end_date parameter.

# }