Skip to contents

causewise 3.0.0

GeoLift is now causewise. This release continues GeoLift under a new name, maintained by its original author. Replace library(GeoLift) with library(causewise); function names, arguments, and datasets are unchanged.

  • Renamed the package from GeoLift to causewise.
  • Fixed “Tibble columns must have compatible sizes” errors in GeoLift() and plot() for tests with more than one treatment location (works around an augsynth bug exposed by tibble >= 3.0).
  • Fixed dplyr::rename() calls that broke with dplyr >= 1.0 when column names were passed as variables.
  • Fixed ProportionTotal_Y being computed from a tibble with as.numeric().
  • Added .groups to dplyr::summarize() calls and replaced mutate(col = NULL).
  • License metadata now matches the MIT license file (DESCRIPTION previously said GPL).
  • augsynth’s augmented synthetic control code (single treatment time) is now part of causewise (R/augsynth-*.R, MIT license, credited in DESCRIPTION and inst/COPYRIGHTS). causewise no longer depends on the GitHub-only augsynth package, no longer patches it at load time, and can coexist with it in the same session. Results match augsynth commit 7e70072 exactly; they differ from older augsynth builds only at the 1e-6 level because of augsynth’s own solver update, which also fixes model = "GSYN" with gsynth >= 1.3.
  • R CMD check now passes with no errors, warnings, or notes.
  • Fixed plot() of GeoLiftMarketSelection failing with “Two versions of estimated impacts do not correspond” for 2+ treated locations (legacy #226; fixed by the updated augsynth code).
  • GeoLiftMarketSelection() now works when include_markets has as many markets as N, or when no correlation-based group contains all of them (legacy #206).
  • GeoLiftMarketSelection() stops with one clear message when no markets meet the budget or holdout criteria, instead of a follow-up subsetting error (legacy #191).
  • Fixed plot() with frequency = “weekly” and post_treatment_periods > 0 (legacy #225).
  • model = “best” (legacy #231): candidates that fail to fit are now skipped with a warning instead of silently scoring 1; the selection reports each candidate’s Scaled L2 Imbalance; GetWeights() now supports “best”; power and market selection functions reject unsupported models with a clear error; documentation corrected. GSYN fits again with gsynth >= 1.3.
  • Every exported function now has a runnable example, and a short “Get started” vignette replaces the long walkthroughs in the package; the full walkthroughs, multi-cell guide, and Commuting Zones guide are articles on https://causewise.dev.
  • Fixed GeoLiftPower.search(), GeoLiftPowerFinder() and other callers of run_simulations() and pvalueCalc() failing with “promise already under evaluation” when inference settings were not passed explicitly.
  • Fixed ReplaceTreatmentSplit() failing when the data has no treatment column.
  • Replaced the CHANGELOG with NEWS.md.
  • Lighter installation: gsynth, MarketMatching and panelView are now optional (Suggests) and only needed for model = “GSYN”, market selection with dtw > 0, and plot(type = “TreatmentSchedule”); causewise explains how to install them when needed. directlabels and knitr are no longer required. This cuts the dependency tree from 89 to 45 packages (compiled packages from 42 to 21), removing CausalImpact, bsts, Boom, fixest and fect, which caused most installation failures (legacy #188, #156, #46).
  • Plot cleanup: replaced deprecated ggplot2 size with linewidth; GeoPlot labels no longer need directlabels and are spaced to avoid overlaps; confidence bands are drawn only where they exist (no more “Removed rows” warnings); the smoothed power curve is skipped when there are fewer than 6 effect sizes, where LOESS is unstable. Plots now produce no warnings.
  • Power and market selection simulations are now reproducible: set.seed() before the call gives identical results whether it runs in parallel or not and regardless of the number of workers. Because each simulation now has its own seed, simulated p-values differ from earlier versions for the same seed.