Usage
GeoPlot(
data,
Y_id = "Y",
time_id = "time",
location_id = "location",
treatment_start = 0,
KPI_id = "",
notes = ""
)Arguments
- data
A data.frame containing the historical conversions by geographic unit. It requires a "locations" column with the geo name, a "Y" column with the outcome data (units), a time column with the indicator of the time period (starting at 1), and covariates.
- Y_id
Name of the outcome variable (String).
- time_id
Name of the time variable (String).
- location_id
Name of the location variable (String).
- treatment_start
Treatment start (Default = 0).
- KPI_id
Outcome variable.
- notes
Additional notes.
Examples
geo_test <- GeoDataRead(GeoLift_Test, date_id = "date", location_id = "location",
Y_id = "Y", format = "yyyy-mm-dd")
GeoPlot(geo_test, Y_id = "Y", time_id = "time", location_id = "location",
treatment_start = 91)