Skip to content

causalgenerics

0.1.0

Shared Generics for the 'r-causal' Ecosystem

0packages depend
84downloads / year
100.0%test coverage
12/12checks pass

Overview

About
Maintained by Malcolm BarrettFirst published 2026-08-081 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
12OK
Slowest check: 1.3 min · r-release-windows-x86_64
Code health
Yes
Tests · ratio 2.39
100.0%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-08-09
    6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 271 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
92%
Return-value docs
100%
References docs
0%

Downloads

84
CRAN downloads in the past year
Rank #24,765 · ~0/day · ~7/mo
causalgenerics
Daily download trend is not available in this view yet.

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
1Releases
Last activity 2026-08-13

Repository practices

Upstream repositoryBeta

Repository github.com/r-causal/causalgenerics is linked, but repository-practices checks have not run for it yet.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (2)
statsvctrs
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

1 release. R releases are shown for context.

  • 0.1.0Latest
    2026-08-08 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-08-08
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("causalgenerics")
Barrett, M. (2026). causalgenerics: Shared Generics for the 'r-causal' Ecosystem (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.causalgenerics

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for causalgenerics version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy