Welcome to ClientVPS Mirrors

README

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.

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.