The code works well then using only 1 market in include_markets, but when increasing the number, fails.
MarketSelections <- GeoLiftMarketSelection(
- data = GeoTestData_PreTest,
- treatment_periods = c(10, 15),
- N = c(2),
- Y_id = "Y",
- location_id = "location",
- time_id = "time",
- effect_size = seq(-0.25, 0.25, 0.05),
- lookback_window = 1,
- include_markets = c("chicago", "honolulu"),
- #exclude_markets = c("honolulu"),
- cpic = 7.50,
- budget = 100000,
- alpha = 0.1,
- Correlations = TRUE,
- fixed_effects = TRUE,
- side_of_test = "two_sided",
- parallel = FALSE
- )
Calculating which the best treatment groups are.
Deterministic setup with 2 locations in treatment.
Error in dplyr::mutate():
ℹ In argument: significant = ifelse(pvalue < alpha, 1, 0).
Caused by error:
! object 'pvalue' not found
Run rlang::last_trace() to see where the error occurred.
The code works well then using only 1 market in include_markets, but when increasing the number, fails.
MarketSelections <- GeoLiftMarketSelection(
Calculating which the best treatment groups are.
Deterministic setup with 2 locations in treatment.
Error in
dplyr::mutate():ℹ In argument:
significant = ifelse(pvalue < alpha, 1, 0).Caused by error:
! object 'pvalue' not found
Run
rlang::last_trace()to see where the error occurred.