Skip to contents

halfmoon (development version)

  • ess() is now a re-export of the generic of the same name from causalgenerics. Attaching halfmoon alongside another package that re-exports that same generic no longer produces a masking conflict, because both packages export the one object. A package that defines its own unrelated ess() still masks, as before. The calculation is unchanged for numeric weights.

  • Because the generic names its first argument x, ess() no longer accepts the argument name wts. Pass the weights positionally, as in ess(w).

  • ess(), and bal_ess() through it, now error on non-numeric input instead of returning a meaningless number. Previously ess(NULL) and bal_ess(NULL) returned NaN, and factors, logicals, data frames, dates, time differences, and complex vectors each produced a value: bal_ess(factor("a")) returned 1.8. ess(rep(0, 5)) and ess(numeric(0)) still return NaN.

halfmoon 0.2.0

CRAN release: 2026-03-04

halfmoon 0.1.0.9000

  • Added a NEWS.md file to track changes to the package.