causalgenerics: Shared Generics for the 'r-causal' Ecosystem

A home for the S3 generics shared across the 'r-causal' ecosystem, including 'propensity', 'halfmoon', 'positively', and 'balancing'. Owning the generic definitions in one place lets those packages register methods without masking one another when several are attached at once. The generics cover inverse probability weighted estimation, effective sample size, and the metadata carried by causal weight vectors, and the package supplies the abstract causal weight class and the result class those estimates are returned in, together with the methods both classes carry, so that the ecosystem packages inherit them rather than writing their own. The design follows that of the 'generics' package, which provides commonly used S3 generics for the same purpose: letting packages share a single definition instead of each defining its own.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: stats, vctrs
Suggests: testthat (≥ 3.2.0), withr
Published: 2026-08-08
DOI: 10.32614/CRAN.package.causalgenerics (may not be active yet)
Author: Malcolm Barrett ORCID iD [aut, cre, cph]
Maintainer: Malcolm Barrett <malcolmbarrett at gmail.com>
BugReports: https://github.com/r-causal/causalgenerics/issues
License: MIT + file LICENSE
URL: https://github.com/r-causal/causalgenerics, https://r-causal.github.io/causalgenerics/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: causalgenerics results

Documentation:

Reference manual: causalgenerics.html , causalgenerics.pdf

Downloads:

Package source: causalgenerics_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): causalgenerics_0.1.0.tgz, r-oldrel (arm64): causalgenerics_0.1.0.tgz, r-release (x86_64): causalgenerics_0.1.0.tgz, r-oldrel (x86_64): causalgenerics_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=causalgenerics to link to this page.