Skip to content

R6causal

0.8.3Package record

R6 Class for Structural Causal Models

0packages depend
3.5Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.8.3
  • Changed the parameters of functions counterfactual and fairness. Now the method to simulate counterfactuals must be always specified by the user and condition_type is required if the method is "u_find".

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
Show 2 earlier changesHide 2 earlier changes
  • ERROR13 OK, 1 ERROR2026-03-30
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.8.3
READMEYes · 186 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.8.3Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
16 (1 internal)includes a package overview page
Examples that run
100%12 run in a plain check
Exported functions with examples
86%
Documented parameters
100%
Return-value docs
29%
Help pages citing references
13%
Vignettes (1)

Downloads

3.5K
CRAN downloads in the past year
Rank #10,681 · ~10/day · ~293/mo
Daily download trend is not available in this view yet.
38030 days
98090 days
3.5K1 year
Compare downloads with other packages →
Also on87 r2u3 autocran57 c2d4u

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing R6causal adds 15 packages (9 with compiled code, 17 MB of source tarballs). Heaviest: data.table 5.7 MB, igraph 4.8 MB, Rcpp 1.8 MB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.6.0 (2021)
Releases (7)

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
  • R
    R 4.4.0 released · 2024-04-24
  • 0.8.3Latest
    record
    2024-03-14 · current release · diff ↗
  • 0.8.2
    record
    2023-12-19 · diff ↗
  • 0.8.1
    record
    2023-11-18 · diff ↗
  • 0.8.0
    record
    2023-06-12 · diff ↗ ·
    added 5 exports
    LinearGaussianSCM, analytic_linear_gaussian, analytic_linear_gaussian_conditining, credit, fairness
  • R
    R 4.3.0 released · 2023-04-21
  • 0.7.0
    record
    2022-11-04 · diff ↗ ·
    added 1 export
    ParallelWorld
  • 0.6.1
    record
    2022-08-06 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.6.0
    record
    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
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 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 R6causal version 0.8.3 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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