Usage
CorrelationCoefficient(data, locs = c())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.
- locs
List of markets to use in the calculation of the correlations.
Examples
geo_pre <- GeoDataRead(GeoLift_PreTest, date_id = "date", location_id = "location",
Y_id = "Y", format = "yyyy-mm-dd")
CorrelationCoefficient(geo_pre, locs = c("chicago", "portland"))
#> [1] 0.9321104