GeoLift icon indicating copy to clipboard operation
GeoLift copied to clipboard

Usage of Covariates

Open ar-asur opened this issue 1 year ago • 0 comments

Hi,

I am trying to use Geolift to measure a test. I have treatment and control set of locations and trying to add covariates and getting the following error Error in extract_covariates(form, unit, time, t_int, data, cov_agg): The following covariates have no variation across units: x1, x2, x3, x4 x5. This comes from augsynth package and I am not able to understand the error as I checked my covariates and they do have good amount of variance.

I do have following questions:

  • Covariates I am adding to the model do vary across time but is constant across test/control. I thought these covariates (they aren't affected by treatment) along with control would help model to better predict counterfactuals. Is my understanding right?
  • I don't see any example of a data set with covariates. I would like to confirm my input data structure. currently, I am passing a data frame with a time column , location column, test KPI, control KPI and covariates (same value for test/control but changes over time)

Any suggestions would be helpful, thanks!

ar-asur avatar Aug 28 '23 23:08 ar-asur