Skip to content

causaldata

0.1.4Package record

Example Data Sets for Causal Inference Textbooks

1packages dependsuggested by 5
50.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Example data sets to run the example problems from causal inference textbooks. Currently, contains data sets for Huntington-Klein, Nick (2021 and 2025) "The Effect" https://theeffectbook.net, first and second edition, Cunningham, Scott (2021 and 2025, ISBN-13: 978-0-300-25168-5) "Causal Inference: The Mixtape", and Hernán, Miguel and James Robins (2020) "Causal Inference: What If" https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/.

Changes in 0.1.4
  • Added ccdrug data.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-16
  • WARNING12 OK, 1 WARNING2026-07-15
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.4
READMEYes · 125 wordsVignettesNoNEWSYes · 67% structured · mentions 0.1.4Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
35 (1 internal)includes a package overview page
Examples that run
no examples
Exported functions with examples
not tracked
Documented parameters
not tracked
Return-value docs
not tracked
Help pages citing references
94%

Downloads

50.1K
CRAN downloads in the past year
Rank #1,944 · ~137/day · ~4.2K/mo
Daily download trend is not available in this view yet.
3.8K30 days
9.8K90 days
50.1K1 year
Compare downloads with other packages →
Also on1.6K r2u12 autocran105 c2d4u

Repository

160Stars
34Forks
1Open issues
0Open PRs
0Releases
53Commits
2Commit identities
53 commits · Last activity 2024-11-08 · +0.6% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
6
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-10-05 · 1472026-10-12 · 160
PracticesBeta

Checks run against github.com/nickch-k/causaldata on 2026-10-21.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing causaldata adds 10 packages (7 with compiled code, 4.0 MB of source tarballs). Heaviest: vctrs 1.0 MB, rlang 766 KB, cli 629 KB.

Depends (1)
R >= 2.10
Imports (1)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 0.1.1 (2021)
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.4Latest
    record
    2024-10-24 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.3
    record
    2021-12-01 · diff ↗
  • 0.1.1
    record
    2021-05-20
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-05-20
Total releases
3 / 5 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
2.0 MB / 34 files
Download size
2.1 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("causaldata")
Huntington-Klein, N., & Barrett, M. (2024). causaldata: Example Data Sets for Causal Inference Textbooks (Version 0.1.4) [Computer software]. https://doi.org/10.32614/CRAN.package.causaldata

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 causaldata version 0.1.4 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, 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