{
  "_id": "6a266706794753ddbc3e6a9f",
  "Package": "R6causal",
  "Type": "Package",
  "Title": "R6 Class for Structural Causal Models",
  "Version": "0.8.3",
  "Authors@R": "person(\"Juha\", \"Karvanen\", email = \"juha.karvanen@iki.fi\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0001-5530-769X\"))",
  "Maintainer": "Juha Karvanen <juha.karvanen@iki.fi>",
  "Description": "The implemented R6 class 'SCM' aims to simplify working\nwith structural causal models. The missing data mechanism can\nbe defined as a part of the structural model. The class\ncontains methods for 1) defining a structural causal model via\nfunctions, text or conditional probability tables, 2) printing\nbasic information on the model, 3) plotting the graph for the\nmodel using packages 'igraph' or 'qgraph', 4) simulating data\nfrom the model, 5) applying an intervention, 6) checking the\nidentifiability of a query using the R packages 'causaleffect'\nand 'dosearch', 7) defining the missing data mechanism, 8)\nsimulating incomplete data from the model according to the\nspecified missing data mechanism and 9) checking the\nidentifiability in a missing data problem using the R package\n'dosearch'. In addition, there are functions for running\nexperiments and doing counterfactual inference using\nsimulation.",
  "License": "AGPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Collate": "'R6causal-package.R' 'R6causal_utils.R' 'R6causal.R'\n'R6causal_examples.R' 'R6causal_counterfactual.R'\n'R6causal_functions.R' 'R6causal_linear.R'",
  "Packaged": {
    "Date": "2026-06-08 06:50:53 UTC",
    "User": "root"
  },
  "Author": "Juha Karvanen [aut, cre]\n(<https://orcid.org/0000-0001-5530-769X>)",
  "Config/pak/sysreqs": "libglpk-dev libxml2-dev",
  "Repository": "https://juhakarvanen.r-universe.dev",
  "Date/Publication": "2024-03-15 02:31:13 UTC",
  "RemoteUrl": "https://github.com/cran/R6causal",
  "RemoteRef": "HEAD",
  "RemoteSha": "dd349b53c001f781960a6ba483e6904a89db75e3",
  "MD5sum": "9857d112f42a62eb88a0d03d27264f7d",
  "_user": "juhakarvanen",
  "_type": "src",
  "_file": "R6causal_0.8.3.tar.gz",
  "_fileid": "4be629b6914ef7f3ab936d0226aa175b95d373835d16d09db93eb76ae573f35d",
  "_filesize": 776345,
  "_sha256": "4be629b6914ef7f3ab936d0226aa175b95d373835d16d09db93eb76ae573f35d",
  "_created": "2026-06-08T06:50:53.000Z",
  "_published": "2026-06-08T06:53:58.414Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80037675848,
      "time": 123,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7473362934"
    },
    {
      "job": 80037675822,
      "time": 138,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7473366119"
    },
    {
      "job": 80037675832,
      "time": 47,
      "config": "macos-oldrel-arm64",
      "r": "",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80037675861,
      "time": 45,
      "config": "macos-release-arm64",
      "r": "",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80037197801,
      "time": 227,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473333394"
    },
    {
      "job": 80037675849,
      "time": 142,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473367097"
    },
    {
      "job": 80037675835,
      "time": 98,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7473356884"
    },
    {
      "job": 80037675870,
      "time": 24,
      "config": "windows-oldrel",
      "r": "",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80037675854,
      "time": 42,
      "config": "windows-release",
      "r": "",
      "check": "FAIL",
      "artifact": ""
    }
  ],
  "_buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/27120774472",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/R6causal",
  "_commit": {
    "id": "dd349b53c001f781960a6ba483e6904a89db75e3",
    "author": "Juha Karvanen <juha.karvanen@iki.fi>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.8.3\n",
    "time": 1710469873
  },
  "_maintainer": {
    "name": "Juha Karvanen",
    "email": "juha.karvanen@iki.fi",
    "login": "juhakarvanen",
    "twitter": "@JuhaKarvanen",
    "description": "",
    "uuid": 67104589,
    "orcid": "0000-0001-5530-769X"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "causaleffect",
      "role": "Imports"
    },
    {
      "package": "cfid",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "dosearch",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "qgraph",
      "role": "Suggests"
    },
    {
      "package": "sqldf",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "juhakarvanen",
      "count": 7,
      "uuid": 67104589
    }
  ],
  "_userbio": {
    "uuid": 67104589,
    "type": "user",
    "name": "Juha Karvanen"
  },
  "_downloads": {
    "count": 234,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/R6causal"
  },
  "_searchresults": 5,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/R6causal.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_realowner": "juhakarvanen",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.6.0",
      "date": "2021-08-06"
    },
    {
      "version": "0.6.1",
      "date": "2022-08-06"
    },
    {
      "version": "0.7.0",
      "date": "2022-11-04"
    },
    {
      "version": "0.8.0",
      "date": "2023-06-12"
    },
    {
      "version": "0.8.1",
      "date": "2023-11-18"
    },
    {
      "version": "0.8.2",
      "date": "2023-12-19"
    },
    {
      "version": "0.8.3",
      "date": "2024-03-14"
    }
  ],
  "_exports": [
    "analytic_linear_gaussian",
    "analytic_linear_gaussian_conditining",
    "backdoor",
    "backdoor_md",
    "counterfactual",
    "credit",
    "fairness",
    "frontdoor",
    "generate_condprob",
    "LinearGaussianSCM",
    "ParallelWorld",
    "run_experiment",
    "SCM",
    "trapdoor"
  ],
  "_help": [
    {
      "page": "analytic_linear_gaussian",
      "title": "Simulate data from a conditional linear Gaussian SCM",
      "topics": [
        "analytic_linear_gaussian"
      ]
    },
    {
      "page": "analytic_linear_gaussian_conditining",
      "title": "Return the mean and the covariance matrix of the conditional distribution of a linear Gaussian SCM",
      "topics": [
        "analytic_linear_gaussian_conditining"
      ]
    },
    {
      "page": "backdoor",
      "title": "SCM \"backdoor\" used in the examples.",
      "topics": [
        "backdoor"
      ]
    },
    {
      "page": "backdoor_md",
      "title": "SCM \"backdoor_md\" used in the examples.",
      "topics": [
        "backdoor_md"
      ]
    },
    {
      "page": "counterfactual",
      "title": "Counterfactual inference via simulation",
      "topics": [
        "counterfactual"
      ]
    },
    {
      "page": "credit",
      "title": "SCM \"credit\" used in the credit scoring example.",
      "topics": [
        "credit"
      ]
    },
    {
      "page": "fairness",
      "title": "Checking fairness of a prediction via counterfactual simulation",
      "topics": [
        "fairness"
      ]
    },
    {
      "page": "frontdoor",
      "title": "SCM \"frontdoor\" used in the examples.",
      "topics": [
        "frontdoor"
      ]
    },
    {
      "page": "generate_condprob",
      "title": "Define structural function by a conditional probability table",
      "topics": [
        "generate_condprob"
      ]
    },
    {
      "page": "LinearGaussianSCM",
      "title": "R6 Class for linear structural causal models where background variables have Gaussian distribution",
      "topics": [
        "LinearGaussianSCM"
      ]
    },
    {
      "page": "ParallelWorld",
      "title": "R6 Class for parallel world models",
      "topics": [
        "ParallelWorld"
      ]
    },
    {
      "page": "R6causalimport",
      "title": "R6causal: R6 class for structural causal models",
      "topics": [
        "R6causalimport"
      ]
    },
    {
      "page": "run_experiment",
      "title": "Conduct a sequence of interventions and collect the simulated data.",
      "topics": [
        "run_experiment"
      ]
    },
    {
      "page": "SCM",
      "title": "R6 Class for structural causal models",
      "topics": [
        "SCM"
      ]
    },
    {
      "page": "trapdoor",
      "title": "SCM \"trapdoor\" used in the examples.",
      "topics": [
        "trapdoor"
      ]
    }
  ],
  "_readme": "https://github.com/cran/R6causal/raw/HEAD/README.md",
  "_rundeps": [
    "causaleffect",
    "cfid",
    "cli",
    "cpp11",
    "data.table",
    "dosearch",
    "glue",
    "igraph",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "pkgconfig",
    "R6",
    "Rcpp",
    "rlang",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "using_R6causal.Rmd",
      "filename": "using_R6causal.html",
      "title": "Using R6causal",
      "author": "Juha Karvanen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Setup",
        "Defining the model",
        "Defining a linear Gaussian SCM",
        "Printing the model",
        "Plotting the graph",
        "Simulating data",
        "Applying an intervention",
        "An intervention can redefine a structural equation",
        "Running an experiment (set of interventions)",
        "Applying the ID algorithm, Do-search and cfid",
        "Counterfactual inference (a simple case)",
        "Counterfactual inference (parallel worlds)",
        "A model with a missing data mechanism",
        "Plotting the graph for a model with missing data mechanism",
        "Simulating incomplete data",
        "Applying Do-search to a missing data problem"
      ],
      "created": "2021-08-06 07:20:13",
      "modified": "2024-03-15 02:31:13",
      "commits": 5
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "r6causal",
  "_universes": [
    "juhakarvanen"
  ],
  "_binaries": [
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.3",
      "date": "2026-05-09T09:25:23.000Z",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "e7a32239e069a363a34c1abcd35be646eaacd6ff238c6e51cd51d41b279408b1",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/25597532577"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.8.3",
      "date": "2026-05-09T09:26:10.000Z",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "55fb9067961295acbbac561f042ace8a5512e80c5404b9d72f0c1bd7325321f7",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/25597532577"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.8.3",
      "date": "2026-05-09T09:25:23.000Z",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "4a993f01d6b051e66eed81827f8609093dcb3f0022e149d5b618e8cf3ea2678f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/25597532577"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.8.3",
      "date": "2026-05-09T09:26:01.000Z",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "12b4ebff35726b452c02f61c6ee338517a18d4baeb1f3c3882357d073231074d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/25597532577"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.3",
      "date": "2026-06-08T06:53:05.000Z",
      "distro": "noble",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "c5db598845c8a5b292be38c9d631ee66059abc52d416779324d3c9145233eaae",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/27120774472"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.3",
      "date": "2026-06-08T06:53:15.000Z",
      "distro": "noble",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "59423733be15ec28939b554634d723286a7f8f408d16cfd7de0ec120bb81cab9",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/27120774472"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.3",
      "date": "2026-06-08T06:53:42.000Z",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "a7f9c7badc50797a1f4279ac86884688bfff964c3579e91bb185caafcc0f9334",
      "status": "success",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/27120774472"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.8.3",
      "date": "2026-06-08T06:52:33.000Z",
      "commit": "dd349b53c001f781960a6ba483e6904a89db75e3",
      "fileid": "93d91beb6dbbf9ff2579756094493044b04167a0724a5e0983a9924809ba99b4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/juhakarvanen/actions/runs/27120774472"
    }
  ]
}