Skip to content

R6causal

0.8.3

R6 Class for Structural Causal Models

0packages depend
3.4Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Juha KarvanenFirst published 2021-08-067 releasesCRAN page ↗

The implemented R6 class 'SCM' aims to simplify working with structural causal models. The missing data mechanism can be defined as a part of the structural model. The class contains methods for 1) defining a structural causal model via functions, text or conditional probability tables, 2) printing basic information on the model, 3) plotting the graph for the model using packages 'igraph' or 'qgraph', 4) simulating data from the model, 5) applying an intervention, 6) checking the identifiability of a query using the R packages 'causaleffect' and 'dosearch', 7) defining the missing data mechanism, 8) simulating incomplete data from the model according to the specified missing data mechanism and 9) checking the identifiability in a missing data problem using the R package 'dosearch'. In addition, there are functions for running experiments and doing counterfactual inference using simulation.

Install

Health

CRAN checks
13OK
Slowest check: 2.5 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
9
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-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-03-30
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 186 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
29%
References docs
13%

Downloads

3.4K
CRAN downloads in the past year
Rank #12,784 · ~9/day · ~285/mo
Daily download trend is not available in this view yet.
19630 days
78490 days
3.4K1 year
Compare downloads with other packages →
Also on119 r2u18 autocran29 c2d4u

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

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

7 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
  • R
    R 4.4.0 released · 2024-04-24
  • 0.8.3Latest
    2024-03-14 · current release · diff ↗
  • 0.8.2
    2023-12-19 · diff ↗
  • 0.8.1
    2023-11-18 · diff ↗
  • 0.8.0
    2023-06-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.7.0
    2022-11-04 · diff ↗
  • 0.6.1
    2022-08-06 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.6.0
    2021-08-06
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-08-06
Total releases
7 / 5 yrs
License
AGPL-3 OSI
Download size
296 KB
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("R6causal")
Karvanen, J. (2024). R6causal: R6 Class for Structural Causal Models (Version 0.8.3) [Computer software]. https://doi.org/10.32614/CRAN.package.R6causal

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 R6causal version 0.8.3 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

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