{
  "_id": "6a1bf6511d7bb097a0a2639e",
  "Package": "medflex",
  "Title": "Flexible Mediation Analysis Using Natural Effect Models",
  "Version": "0.6-10",
  "Date": "2023-06-22",
  "Authors@R": "c( \nperson(\"Johan\", \"Steen\", email = \"johan.steen@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Tom\", \"Loeys\", email = \"tom.loeys@ugent.be\", role = \"aut\"),\nperson(\"Beatrijs\", \"Moerkerke\", email = \"beatrijs.moerkerke@ugent.be\", role = \"aut\"),\nperson(\"Stijn\", \"Vansteelandt\", email = \"stijn.vansteelandt@ugent.be\", role = \"aut\"),\nperson(\"Joris\", \"Meys\", email = \"joris.meys@ugent.be\", comment = \"technical support\", role = \"ctb\"),\nperson(\"Theis\", \"Lange\", email = \"thlan@sund.ku.dk\", comment = \"valuable suggestions\", role = \"ctb\"),\nperson(\"Joscha\", \"Legewie\", email = \"\", role = \"ctb\"),\nperson(\"Paul\", \"Fink\", email = \"\", role = \"ctb\"),\nperson(\"Sanford\", \"Weisberg\", email = \"sanfordweisberg@gmail.com\", role = \"ctb\"),\nperson(\"Yves\", \"Rosseel\", email = \"\", role = \"ctb\"))",
  "Description": "Run flexible mediation analyses using natural effect\nmodels as described in Lange, Vansteelandt and Bekaert (2012)\n<DOI:10.1093/aje/kwr525>, Vansteelandt, Bekaert and Lange\n(2012) <DOI:10.1515/2161-962X.1014> and Loeys, Moerkerke, De\nSmet, Buysse, Steen and Vansteelandt (2013)\n<DOI:10.1080/00273171.2013.832132>.",
  "License": "GPL-2",
  "URL": "https://github.com/jmpsteen/medflex",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "Encoding": "UTF-8",
  "ByteCompile": "yes",
  "NeedsCompilation": "no",
  "Author": "Johan Steen [aut, cre], Tom Loeys [aut], Beatrijs Moerkerke\n[aut], Stijn Vansteelandt [aut], Joris Meys [ctb] (technical\nsupport), Theis Lange [ctb] (valuable suggestions), Joscha\nLegewie [ctb], Paul Fink [ctb], Sanford Weisberg [ctb], Yves\nRosseel [ctb]",
  "Maintainer": "Johan Steen <johan.steen@gmail.com>",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://jmpsteen.r-universe.dev",
  "Date/Publication": "2023-06-22 13:28:21 UTC",
  "RemoteUrl": "https://github.com/jmpsteen/medflex",
  "RemoteRef": "HEAD",
  "RemoteSha": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
  "Packaged": {
    "Date": "2026-05-31 08:46:51 UTC",
    "User": "root"
  },
  "MD5sum": "500c57967b7e7224913e394b8a34f577",
  "_user": "jmpsteen",
  "_type": "src",
  "_file": "medflex_0.6-10.tar.gz",
  "_fileid": "3659b12136eeb80fa184cc0a619aeb81e4454c0490ce23fd5006197a3e4ab975",
  "_filesize": 1558302,
  "_sha256": "3659b12136eeb80fa184cc0a619aeb81e4454c0490ce23fd5006197a3e4ab975",
  "_created": "2026-05-31T08:46:51.000Z",
  "_published": "2026-05-31T08:50:25.190Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78713085582,
      "time": 165,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7315357185"
    },
    {
      "job": 78713085583,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7315355243"
    },
    {
      "job": 78713085576,
      "time": 173,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7315355586"
    },
    {
      "job": 78713085585,
      "time": 130,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7315352219"
    },
    {
      "job": 78712841969,
      "time": 249,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315341387"
    },
    {
      "job": 78713085579,
      "time": 132,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315353939"
    },
    {
      "job": 78713085587,
      "time": 123,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7315353186"
    },
    {
      "job": 78713085599,
      "time": 90,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7315350138"
    },
    {
      "job": 78713085591,
      "time": 105,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7315351521"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jmpsteen/medflex",
  "_commit": {
    "id": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
    "author": "jsteen <johan.steen@ugent.be>",
    "committer": "jsteen <johan.steen@ugent.be>",
    "message": "changed url's to doi's in CITATION (to avoid NOTE in CHECK)\n",
    "time": 1687440501
  },
  "_maintainer": {
    "name": "Johan Steen",
    "email": "johan.steen@gmail.com",
    "login": "jmpsteen",
    "description": "",
    "uuid": 4550959
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.2",
      "role": "Depends"
    },
    {
      "package": "multcomp",
      "version": ">= 1.3-6",
      "role": "Depends"
    },
    {
      "package": "boot",
      "version": ">= 1.3-8",
      "role": "Imports"
    },
    {
      "package": "car",
      "version": ">= 2.0-21",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.1-4",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "version": ">= 3.1.2",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "version": ">= 2.3-2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "version": ">= 3.1.2",
      "role": "Imports"
    },
    {
      "package": "utils",
      "version": ">= 3.1.2",
      "role": "Imports"
    },
    {
      "package": "arm",
      "version": ">= 1.7-05",
      "role": "Suggests"
    },
    {
      "package": "gam",
      "version": ">= 1.09.1",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "version": ">= 1.9-8",
      "role": "Suggests"
    },
    {
      "package": "mice",
      "version": ">= 2.22",
      "role": "Suggests"
    },
    {
      "package": "mitools",
      "version": ">= 2.3",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "version": ">= 4.1-8",
      "role": "Suggests"
    },
    {
      "package": "SuperLearner",
      "version": ">= 2.0-15",
      "role": "Suggests"
    },
    {
      "package": "VGAM",
      "version": ">= 1.0-0",
      "role": "Suggests"
    }
  ],
  "_owner": "jmpsteen",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "causal-inference",
    "flexible-modeling",
    "mediation-analysis"
  ],
  "_stars": 25,
  "_contributors": [
    {
      "user": "jmpsteen",
      "count": 66,
      "uuid": 4550959
    },
    {
      "user": "jlegewie",
      "count": 1,
      "uuid": 1292401
    }
  ],
  "_userbio": {
    "uuid": 4550959,
    "type": "user",
    "name": "jmpsteen"
  },
  "_downloads": {
    "count": 888,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/medflex"
  },
  "_mentions": 19,
  "_devurl": "https://github.com/jmpsteen/medflex",
  "_searchresults": 85,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/medflex.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jmpsteen/medflex",
  "_realowner": "jmpsteen",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.0",
      "date": "2014-12-11"
    },
    {
      "version": "0.5-0",
      "date": "2015-02-07"
    },
    {
      "version": "0.5-1",
      "date": "2015-07-01"
    },
    {
      "version": "0.6-0",
      "date": "2015-09-13"
    },
    {
      "version": "0.6-1",
      "date": "2017-02-22"
    },
    {
      "version": "0.6-4",
      "date": "2017-09-15"
    },
    {
      "version": "0.6-6",
      "date": "2018-09-03"
    },
    {
      "version": "0.6-7",
      "date": "2020-08-03"
    },
    {
      "version": "0.6-10",
      "date": "2023-06-22"
    },
    {
      "version": "0.6-11",
      "date": "2025-10-13"
    }
  ],
  "_exports": [
    "neEffdecomp",
    "neImpute",
    "neLht",
    "neModel",
    "neWeight",
    "plot.neLht"
  ],
  "_datasets": [
    {
      "name": "UPBdata",
      "title": "UPB data",
      "object": "UPBdata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "att",
        "attbin",
        "attcat",
        "negaff",
        "initiator",
        "gender",
        "educ",
        "age",
        "UPB"
      ],
      "rows": 385,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "expData",
      "title": "Expanded dataset",
      "topics": [
        "expData"
      ]
    },
    {
      "page": "expData-methods",
      "title": "Methods for expanded datasets",
      "topics": [
        "expData-methods",
        "residualPlot.expData",
        "residualPlots.expData",
        "residuals.expData",
        "weights.expData"
      ]
    },
    {
      "page": "neImpute",
      "title": "Expand the dataset and impute nested counterfactual outcomes",
      "topics": [
        "neImpute"
      ]
    },
    {
      "page": "neImpute.default",
      "title": "Expand the dataset and impute nested counterfactual outcomes",
      "topics": [
        "neImpute.default"
      ]
    },
    {
      "page": "neImpute.formula",
      "title": "Expand the dataset and impute nested counterfactual outcomes",
      "topics": [
        "neImpute.formula"
      ]
    },
    {
      "page": "neLht",
      "title": "Linear hypotheses for natural effect models",
      "topics": [
        "neEffdecomp",
        "neEffdecomp.neModel",
        "neLht",
        "neLht.neModel"
      ]
    },
    {
      "page": "neLht-methods",
      "title": "Methods for linear hypotheses in natural effect models",
      "topics": [
        "confint.neLht",
        "confint.neLhtBoot",
        "neLht-methods",
        "summary.neLht"
      ]
    },
    {
      "page": "neModel",
      "title": "Fit a natural effect model",
      "topics": [
        "neModel"
      ]
    },
    {
      "page": "neModel-methods",
      "title": "Methods for natural effect models",
      "topics": [
        "coef.neModel",
        "confint.neModel",
        "confint.neModelBoot",
        "neModel-methods",
        "residualPlot.neModel",
        "residualPlots.neModel",
        "summary.neModel",
        "vcov.neModel",
        "weights.neModel"
      ]
    },
    {
      "page": "neWeight",
      "title": "Expand the dataset and calculate ratio-of-mediator probability weights",
      "topics": [
        "neWeight"
      ]
    },
    {
      "page": "neWeight.default",
      "title": "Expand the dataset and calculate ratio-of-mediator probability weights",
      "topics": [
        "neWeight.default"
      ]
    },
    {
      "page": "neWeight.formula",
      "title": "Expand the dataset and calculate ratio-of-mediator probability weights",
      "topics": [
        "neWeight.formula"
      ]
    },
    {
      "page": "plot.neLht",
      "title": "Confidence interval plots for linear hypotheses in natural effect models",
      "topics": [
        "plot.neEffdecomp",
        "plot.neLht",
        "plot.neLhtBoot"
      ]
    },
    {
      "page": "plot.neModel",
      "title": "Confidence interval plots for natural effect components",
      "topics": [
        "plot.neModel",
        "plot.neModelBoot"
      ]
    },
    {
      "page": "UPBdata",
      "title": "UPB data",
      "topics": [
        "UPBdata"
      ]
    }
  ],
  "_readme": "https://github.com/jmpsteen/medflex/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "codetools",
    "colorspace",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "multcomp",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "TH.data",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "medflex.Rnw",
      "filename": "medflex.pdf",
      "title": "Flexible mediation analysis in R using natural effect models",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2015-02-04 16:45:53",
      "modified": "2021-02-23 16:21:47",
      "commits": 10
    },
    {
      "source": "sandwich.Rnw",
      "filename": "sandwich.pdf",
      "title": "Sandwich estimator derivations for natural effect model parameters",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2015-02-04 16:45:53",
      "modified": "2015-09-13 08:55:55",
      "commits": 5
    }
  ],
  "_score": 7.32735893438633,
  "_indexed": true,
  "_nocasepkg": "medflex",
  "_universes": [
    "jmpsteen"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6-10",
      "date": "2026-05-31T08:49:22.000Z",
      "distro": "noble",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "db28b01b9e4103d3130df33ddc3de867ab2b730c0c88bdff8e65d91b6d01a4b0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6-10",
      "date": "2026-05-31T08:49:06.000Z",
      "distro": "noble",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "1609b11bac4d3d1cbc1549843f8655e967883bca33842d2053734caf69648f1f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6-10",
      "date": "2026-05-31T08:49:19.000Z",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "7b5a21f4d1b08f4d3f69bdf7e14ad77528b5bda4e9f270251ac619c3bcb6b407",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6-10",
      "date": "2026-05-31T08:48:45.000Z",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "39fa12d05eb472dbee4fb578910d9f5ef70fed7da4b9fb080a7e50136edba43b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6-10",
      "date": "2026-05-31T08:49:23.000Z",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "31b9e87ae729d513ad6b8ffecfd9cea02a5c17f7bf1897226f5d96e8e598aa07",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6-10",
      "date": "2026-05-31T08:48:35.000Z",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "a8fc9bfd55700a4b241534d138c85325e29d4a7b5af21466724700e2ed37ff01",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6-10",
      "date": "2026-05-31T08:48:08.000Z",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "0d6315c4c89911563f8423e9c0aa136f174534376ded551c5a1da3279f07b0c6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.6-10",
      "date": "2026-05-31T08:48:17.000Z",
      "commit": "327ff7a3fcadaa4abedf702aa1aac89073419f73",
      "fileid": "fb81e7d52c1e7c57ece2a97626f8aceaa56a016d397853fefa311b802f9ed041",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmpsteen/actions/runs/26707997898"
    }
  ]
}