The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

causalgenerics

R-CMD-check

causalgenerics is the shared generics package for the r-causal ecosystem. It provides a near-zero-dependency home for the S3 generics that packages such as propensity, halfmoon, positively, and balancing register methods on. Owning the generic definitions in one place means that attaching several r-causal packages at once produces no masking: each package contributes methods to a common generic instead of redefining the function.

The package is modeled on the generics package, which provides commonly used S3 generics for the same reason: so that packages can share a definition instead of each defining their own.

Installation

You can install the released version of causalgenerics from CRAN with:

install.packages("causalgenerics")

You can install the development version from GitHub with:

# install.packages("pak")
pak::pak("r-causal/causalgenerics")

Most users will get causalgenerics as a dependency of another r-causal package rather than installing it directly.

Generics

causalgenerics owns the following generics:

The generics are intentionally minimal. Method-specific arguments are passed through ..., and the concrete weight classes live in the packages that own them.

How ecosystem packages depend on it

Packages in the r-causal ecosystem import causalgenerics and register their methods against these generics. Because the generic is defined once, a user can attach any combination of those packages without one masking another.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.