facebookincubator / GeoLift

GeoLift is an end-to-end geo-experimental methodology based on Synthetic Control Methods used to measure the true incremental effect (Lift) of ad campaign.
https://facebookincubator.github.io/GeoLift/
MIT License
175 stars 54 forks source link

fix covariates in GeoDataRead and update of version to 2.7.4 #170

Closed JussanN closed 1 year ago

JussanN commented 1 year ago

Fix that corrects GeoDataRead to take Covariates into account again and update of the version from 2.7.3 to 2.7.4. Based on the issue: https://github.com/facebookincubator/GeoLift/issues/169

Suggestion for testing:

head(GeoLift_PreTest)

GeoLift_PreTest$clicks <- GeoLift_PreTest$Y*(100 + rnorm(n=10, sd=0.05)) 

GeoTestData_PreTest <- GeoDataRead(data = GeoLift_PreTest,
                                   date_id = "date",
                                   location_id = "location",
                                   Y_id = "Y",
                                   X = c("clicks"),
                                   format = "yyyy-mm-dd",
                                   summary = TRUE)

head(GeoTestData_PreTest)