Skip to content

causaldata

0.1.4

Example Data Sets for Causal Inference Textbooks

5packages depend
59.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Nick Huntington-KleinFirst published 2021-05-203 releasesCRAN page ↗GitHub ↗

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/.

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
1
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-16
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-07-15
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 125 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
not tracked
Documented parameters
not tracked
Return-value docs
not tracked
References docs
94%

Downloads

59.9K
CRAN downloads in the past year
Rank #1,982 · ~164/day · ~5K/mo
Daily download trend is not available in this view yet.
2.9K30 days
11K90 days
59.9K1 year
Compare downloads with other packages →
Also on3.8K r2u25 autocran53 c2d4u

Repository

Repository
158Stars
34Forks
1Open issues
0Open PRs
0Releases
53Commits
2Contributors
53 commits · Last activity 2024-11-08 · 0% stars, 30d

Stars over time

2025-06-03 · 1372026-07-17 · 158

Repository practices

Upstream repositoryBeta

Checks run against github.com/nickch-k/causaldata on 2026-08-16.

No development-tooling practices detected in the upstream repository.

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

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (1)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
5direct
0indirect

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.4Latest
    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
    2021-12-01 · diff ↗
  • 0.1.1
    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
Installed size
not tracked yet
With dependencies
not tracked yet
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 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 causaldata version 0.1.4 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, 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