{
  "_id": "6a252aeb4b233be1983944d2",
  "Package": "DirectEffects",
  "Version": "0.3",
  "Title": "Estimating Controlled Direct Effects for Explaining Causal\nFindings",
  "Authors@R": "c(\nperson(\"Matthew\", \"Blackwell\", email = \"mblackwell@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3689-9527\")),\nperson(\"Avidit\", \"Acharya\", email = \"avidit@stanford.edu\", role = c(\"aut\")),\nperson(\"Maya\", \"Sen\", email = \"maya_sen@hks.harvard.edu\", role = c(\"aut\")),\nperson(\"Shiro\", \"Kuriwaki\", email = \"shirokuriwaki@gmail.com\", role = c(\"aut\")),\nperson(\"Jacob\", \"Brown\", email = \"jbrown13@bu.edu\", role = c(\"aut\")),\nperson(\"Anton\", \"Strezhnev\", email = \"astrezhnev@uchicago.edu\", role = c(\"aut\")))",
  "Description": "A set of functions to estimate the controlled direct\neffect of treatment fixing a potential mediator to a specific\nvalue. Implements the sequential g-estimation estimator\ndescribed in Vansteelandt (2009)\n<doi:10.1097/EDE.0b013e3181b6f4c9> and Acharya, Blackwell, and\nSen (2016) <doi:10.1017/S0003055416000216> and the telescope\nmatching estimator described in Blackwell and Strezhnev (2020)\n<doi:10.1111/rssa.12759>.",
  "License": "GPL (>= 2)",
  "URL": "https://mattblackwell.github.io/DirectEffects/",
  "BugReports": "https://github.com/mattblackwell/DirectEffects/issues",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://mattblackwell.r-universe.dev",
  "Date/Publication": "2025-02-25 01:31:18 UTC",
  "RemoteUrl": "https://github.com/mattblackwell/directeffects",
  "RemoteRef": "HEAD",
  "RemoteSha": "89227651a597d18adfd3be6c579ec85e9edcc64b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-07 08:21:45 UTC",
    "User": "root"
  },
  "Author": "Matthew Blackwell [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3689-9527>),\nAvidit Acharya [aut],\nMaya Sen [aut],\nShiro Kuriwaki [aut],\nJacob Brown [aut],\nAnton Strezhnev [aut]",
  "Maintainer": "Matthew Blackwell <mblackwell@gmail.com>",
  "MD5sum": "b76af3f792f8738d39d83bedf95e8a45",
  "_user": "mattblackwell",
  "_type": "src",
  "_file": "DirectEffects_0.3.tar.gz",
  "_fileid": "852e4f71160dac2af471b41d73994003a024a2763845b19904fa6e4df85069ed",
  "_filesize": 934070,
  "_sha256": "852e4f71160dac2af471b41d73994003a024a2763845b19904fa6e4df85069ed",
  "_created": "2026-06-07T08:21:45.000Z",
  "_published": "2026-06-07T08:25:15.650Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79944014411,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462328353"
    },
    {
      "job": 79944014406,
      "time": 153,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462325637"
    },
    {
      "job": 79944014410,
      "time": 98,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462318849"
    },
    {
      "job": 79944014405,
      "time": 111,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462320204"
    },
    {
      "job": 79943808875,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462306250"
    },
    {
      "job": 79944014444,
      "time": 127,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462322339"
    },
    {
      "job": 79944014416,
      "time": 93,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462318871"
    },
    {
      "job": 79944014423,
      "time": 99,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462318836"
    },
    {
      "job": 79944014417,
      "time": 101,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462319265"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mattblackwell/directeffects",
  "_commit": {
    "id": "89227651a597d18adfd3be6c579ec85e9edcc64b",
    "author": "Matthew Blackwell <mblackwell@gov.harvard.edu>",
    "committer": "Matthew Blackwell <mblackwell@gov.harvard.edu>",
    "message": "changed matches in tmatch examples\n",
    "time": 1740447078
  },
  "_maintainer": {
    "name": "Matthew Blackwell",
    "email": "mblackwell@gmail.com",
    "login": "mattblackwell",
    "bluesky": "@mattblackwell.bsky.social",
    "orcid": "0000-0002-3689-9527",
    "twitter": "@matt_blackwell",
    "description": "Data, stats, causal inference, experiments, evals",
    "uuid": 201554
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "Matching",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "reshape2",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "nnet",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "role": "Suggests"
    },
    {
      "package": "hdm",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    }
  ],
  "_owner": "mattblackwell",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 19,
  "_contributors": [
    {
      "user": "mattblackwell",
      "count": 136,
      "uuid": 201554
    },
    {
      "user": "kuriwaki",
      "count": 79,
      "uuid": 8290417
    },
    {
      "user": "jakerbrown",
      "count": 5,
      "uuid": 35080784
    }
  ],
  "_userbio": {
    "uuid": 201554,
    "type": "user",
    "name": "Matthew Blackwell",
    "description": "Data, stats, causal inference, experiments, evals"
  },
  "_downloads": {
    "count": 241,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DirectEffects"
  },
  "_devurl": "https://github.com/mattblackwell/directeffects",
  "_pkgdown": "https://mattblackwell.github.io/DirectEffects/",
  "_searchresults": 25,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/DirectEffects.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mattblackwell/directeffects",
  "_realowner": "mattblackwell",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2018-02-26"
    },
    {
      "version": "0.2",
      "date": "2019-01-04"
    },
    {
      "version": "0.2.1",
      "date": "2021-05-12"
    },
    {
      "version": "0.3",
      "date": "2024-10-04"
    }
  ],
  "_exports": [
    "balance_table",
    "balance.tmatch",
    "boots_g",
    "boots_tm",
    "cde_aipw",
    "cde_did_aipw",
    "cde_ipw",
    "cde_reg_impute",
    "cde_telescope_match",
    "cdesens",
    "estimate",
    "glance",
    "outreg_model",
    "plotDiag.tmatch",
    "sequential_g",
    "set_treatment",
    "telescope_match",
    "tidy",
    "treat_model"
  ],
  "_datasets": [
    {
      "name": "civilwar",
      "title": "Data on civil wars and internal conflict from 1945-1999.",
      "object": "civilwar",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ccode",
        "country",
        "cname",
        "cmark",
        "year",
        "wars",
        "war",
        "warl",
        "onset",
        "ethonset",
        "durest",
        "aim",
        "casename",
        "ended",
        "ethwar",
        "waryrs",
        "pop",
        "lpop",
        "polity2",
        "gdpen",
        "gdptype",
        "gdpenl",
        "lgdpenl1",
        "lpopl1",
        "region",
        "western",
        "eeurop",
        "lamerica",
        "ssafrica",
        "asia",
        "nafrme",
        "colbrit",
        "colfra",
        "mtnest",
        "lmtnest",
        "elevdiff",
        "Oil",
        "ncontig",
        "ethfrac",
        "ef",
        "plural",
        "second",
        "numlang",
        "relfrac",
        "plurrel",
        "minrelpc",
        "muslim",
        "nwstate",
        "polity2l",
        "instab",
        "anocl",
        "deml",
        "empethfrac",
        "empwarl",
        "emponset",
        "empgdpenl",
        "emplpopl",
        "emplmtnest",
        "empncontig",
        "empolity2l",
        "sdwars",
        "sdonset",
        "colwars",
        "colonset",
        "cowwars",
        "cowonset",
        "cowwarl",
        "sdwarl",
        "colwarl"
      ],
      "rows": 6610,
      "table": true,
      "tojson": true
    },
    {
      "name": "jobcorps",
      "title": "Data on health and employment outcomes measured as part of the U.S. Job Corps employment training experiment.",
      "object": "jobcorps",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "treat",
        "female",
        "age_cat",
        "pubhse12",
        "h_ins12a",
        "narry1",
        "pe_prb12",
        "health30",
        "hhsize",
        "hhsizemis",
        "edu12",
        "eduhigh",
        "edumis",
        "welf1",
        "welf2",
        "welf3",
        "welf4",
        "welfmis",
        "afdc",
        "afdcmis",
        "publicass",
        "publicassmis",
        "fdstamp",
        "fdstampmis",
        "onprob",
        "onprobmis",
        "rwhite",
        "work2year2q",
        "age2",
        "numkidhhf1zero",
        "health0mis",
        "health012",
        "pe_prb0",
        "pe_prb0mis",
        "health123",
        "pe_prb12mis",
        "eversmoke",
        "everalc",
        "everilldrugs",
        "h_ins12amis",
        "illdrugs12",
        "alc12",
        "persinc1",
        "hhinc12",
        "hhinc8",
        "vocq4",
        "vocq4mis",
        "pemplq4",
        "pemplq4mis",
        "emplq4",
        "emplq4full",
        "numkidhhf1onetwo",
        "health1212",
        "wemplq4full",
        "schobef",
        "chibef",
        "jobyrbef",
        "multjobyrbef",
        "jobeverbef",
        "trainyrbef",
        "everarr",
        "exhealth30"
      ],
      "rows": 10025,
      "table": true,
      "tojson": true
    },
    {
      "name": "ploughs",
      "title": "Data on historical plough use and the socioeconomic status of women.",
      "object": "ploughs",
      "class": [
        "data.frame"
      ],
      "fields": [
        "isocode",
        "flfp2000",
        "female_ownership",
        "women_politics",
        "plow",
        "agricultural_suitability",
        "tropical_climate",
        "large_animals",
        "political_hierarchies",
        "economic_complexity",
        "ln_income",
        "ln_income_squared",
        "year_obs",
        "plow_aborigenal",
        "hunting",
        "husbandry",
        "terrain_slope",
        "soil_depth",
        "avg_temperature",
        "avg_precipitation",
        "country",
        "communist_dummy",
        "continent",
        "rugged",
        "european_descent",
        "cath00",
        "prot00",
        "othchrist00",
        "muslim00",
        "hindu00",
        "trade_GDP",
        "years_civil_conflict",
        "years_interstate_conflict",
        "agr_va_gdp2000",
        "man_va_gdp2000",
        "serv_va_gdp2000",
        "polity2_2000",
        "plow_negative_crops",
        "plow_positive_crops",
        "region",
        "intensity_agriculture",
        "abs_inherit",
        "matrilocal",
        "patrilocal",
        "nuclear_fam",
        "extended_fam",
        "oil_pc",
        "terrslope2",
        "soil2",
        "avg_temp2",
        "avg_precip2",
        "slope_soil",
        "slope_temp",
        "slope_precip",
        "soil_temp",
        "soil_precip",
        "temp_precip",
        "centered_ln_inc",
        "centered_ln_incsq"
      ],
      "rows": 234,
      "table": true,
      "tojson": true
    },
    {
      "name": "transphobia",
      "title": "Data from a randomized experiment on transgender rights.",
      "object": "transphobia",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "treated",
        "nondiscrim_law_t3",
        "therm_trans_t2",
        "therm_obama_t1",
        "gender_norm_moral_t1",
        "nondiscrim_law_t0",
        "therm_trans_t0",
        "therm_obama_t0",
        "gender_norm_moral_t0",
        "ideology_t0",
        "religious_t0",
        "exposure_trans_t0",
        "pid_t0",
        "vf_democrat",
        "vf_female",
        "vf_hispanic",
        "vf_black",
        "vf_age",
        "nondiscrim_law_diff"
      ],
      "rows": 501,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "balance_table",
      "title": "Balance diagnostics telescope matching",
      "topics": [
        "balance_table"
      ]
    },
    {
      "page": "balance.tmatch",
      "title": "Balance diagnostics for Telescope Match objects",
      "topics": [
        "balance.tmatch"
      ]
    },
    {
      "page": "boots_g",
      "title": "Coefficient Estimates across Bootstrapped Samples",
      "topics": [
        "boots_g"
      ]
    },
    {
      "page": "boots_tm",
      "title": "Bootstrap Uncertainty Estimates for Telescope Matching",
      "topics": [
        "boots_tm"
      ]
    },
    {
      "page": "cde_aipw",
      "title": "Initialize an AIPW CDE estimator",
      "topics": [
        "cde_aipw"
      ]
    },
    {
      "page": "cde_did_aipw",
      "title": "Initialize an AIPW DID-CDE estimator",
      "topics": [
        "cde_did_aipw"
      ]
    },
    {
      "page": "cde_ipw",
      "title": "Initialize an IPW CDE estimator",
      "topics": [
        "cde_ipw"
      ]
    },
    {
      "page": "cde_reg_impute",
      "title": "Initialize an regression imputation CDE estimator",
      "topics": [
        "cde_reg_impute"
      ]
    },
    {
      "page": "cde_telescope_match",
      "title": "Initialize an telescope matching CDE estimator",
      "topics": [
        "cde_telescope_match"
      ]
    },
    {
      "page": "cdesens",
      "title": "Estimate sensitivity of ACDE estimates under varying levels of unobserved confounding",
      "topics": [
        "cdesens"
      ]
    },
    {
      "page": "civilwar",
      "title": "Data on civil wars and internal conflict from 1945-1999.",
      "topics": [
        "civilwar"
      ]
    },
    {
      "page": "estimate",
      "title": "Fit a specified CDE estimator",
      "topics": [
        "estimate"
      ]
    },
    {
      "page": "jobcorps",
      "title": "Data on health and employment outcomes measured as part of the U.S. Job Corps employment training experiment.",
      "topics": [
        "jobcorps"
      ]
    },
    {
      "page": "outreg_model",
      "title": "Specify the outcome regression model for a CDE treatment",
      "topics": [
        "outreg_model"
      ]
    },
    {
      "page": "plot.cdesens",
      "title": "Plot output from cdesens",
      "topics": [
        "plot.cdesens"
      ]
    },
    {
      "page": "plotDiag.tmatch",
      "title": "Histograms of matching weights",
      "topics": [
        "plotDiag.tmatch"
      ]
    },
    {
      "page": "ploughs",
      "title": "Data on historical plough use and the socioeconomic status of women.",
      "topics": [
        "ploughs"
      ]
    },
    {
      "page": "sequential_g",
      "title": "Perform linear sequential g-estimation to estimate the controlled direct effect of a treatment net the effect of a mediator.",
      "topics": [
        "sequential_g"
      ]
    },
    {
      "page": "set_treatment",
      "title": "Specifiy a treatment variable for a controlled direct effect",
      "topics": [
        "set_treatment"
      ]
    },
    {
      "page": "summary.seqg",
      "title": "Computes standard errors and p-values of DirectEffects estimates",
      "topics": [
        "summary.seqg"
      ]
    },
    {
      "page": "summary.seqgboots",
      "title": "Summary of DirectEffect Bootstrap Estimates",
      "topics": [
        "summary.seqgboots"
      ]
    },
    {
      "page": "summary.tmatch",
      "title": "Summarize telescope match objects",
      "topics": [
        "summary.tmatch"
      ]
    },
    {
      "page": "telescope_match",
      "title": "Perform telescope matching to estimate the controlled direct effect of a binary treatment net the effect of binary mediators",
      "topics": [
        "telescope_match"
      ]
    },
    {
      "page": "transphobia",
      "title": "Data from a randomized experiment on transgender rights.",
      "topics": [
        "transphobia"
      ]
    },
    {
      "page": "treat_model",
      "title": "Specify the propensity score model for a CDE treatment",
      "topics": [
        "treat_model"
      ]
    }
  ],
  "_pkglogo": "https://github.com/mattblackwell/directeffects/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/mattblackwell/directeffects/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "broom",
    "cli",
    "cpp11",
    "dplyr",
    "Formula",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matching",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "DirectEffects.Rmd",
      "filename": "DirectEffects.html",
      "title": "Estimating controlled direct effects",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Quantity of interest",
        "Implementation",
        "References"
      ],
      "created": "2018-02-27 00:48:39",
      "modified": "2024-10-01 15:35:36",
      "commits": 5
    }
  ],
  "_score": 5.676693609624866,
  "_indexed": true,
  "_nocasepkg": "directeffects",
  "_universes": [
    "mattblackwell"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3",
      "date": "2026-06-07T08:24:30.000Z",
      "distro": "noble",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "9c1cc63288848ac59ec0916fa54b0110a1874dd5a1abf887bcfd27f1633e2a35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3",
      "date": "2026-06-07T08:24:16.000Z",
      "distro": "noble",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "f34a85afe64b20029e57e8f513fbff8c3f5d3fd6a480eb7ac62ccfce4502cf5d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3",
      "date": "2026-06-07T08:23:22.000Z",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "3ea57bbde12b6b7efb672c7f1a9cc0e7b01229bc209d359c3bd45d2d87d4d3bf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3",
      "date": "2026-06-07T08:23:30.000Z",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "75b516e3c0a023dddbefdae87b98955b040a9a10530e27218ac2244712eb3229",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3",
      "date": "2026-06-07T08:24:07.000Z",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "38e6c7da662af023b86c4c78d10d3f1aff4b73b80df70e4575623ce9937bcfde",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3",
      "date": "2026-06-07T08:23:07.000Z",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "17771726f0da9e96055db56edb239bbef8ea6f3794ea395414ae7752cf4d1859",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3",
      "date": "2026-06-07T08:23:06.000Z",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "06260f9f650e76dccf6fa2e4838d622463fffc9c519bc7c87cbbebaad7996f0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3",
      "date": "2026-06-07T08:23:07.000Z",
      "commit": "89227651a597d18adfd3be6c579ec85e9edcc64b",
      "fileid": "287a8628bf8a0c4c6d9ae0d803fa63b9c785802e79c35de4135cc8cf36744ca8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattblackwell/actions/runs/27087160415"
    }
  ]
}