{
  "_id": "6a1ee904b401979e73411c46",
  "Package": "tmle3mopttx",
  "Title": "Targeted Maximum Likelihood Estimation of the Mean under Optimal\nIndividualized Treatment",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Ivana\", \"Malenica\", email = \"imalenica@berkeley.edu\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-7404-8088\")),\nperson(\"Jeremy\", \"Coyle\", email = \"jeremy.coyle@gmail.com\",\nrole = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-9874-6649\")),\nperson(\"Mark\", \"van der Laan\", email = \"laan@berkeley.edu\",\nrole = c(\"aut\", \"ths\")),\nperson(\"Haodong\", \"Li\", email = \"haodong_li@berkeley.edu\",\nrole = \"ctb\")\n)",
  "Description": "This package estimates the optimal individualized\ntreatment rule for the categorical treatment using Super\nLearner (sl3). In order to avoid nested cross-validation, it\nuses split-specific estimates of Q and g to estimate the rule\nas described by Coyle et al. In addition, it provides the\nTargeted Maximum Likelihood estimates of the mean performance\nusing CV-TMLE under such estimated rules. This is an adapter\npackage for use with the tmle3 framework and the tlverse\nsoftware ecosystem for Targeted Learning.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyLoad": "yes",
  "Remotes": [
    "github::tlverse/delayed",
    "github::tlverse/origami",
    "github::tlverse/sl3",
    "github::tlverse/tmle3",
    "github::tlverse/tmle3shift"
  ],
  "URL": "https://tlverse.org/tmle3mopttx",
  "BugReports": "https://github.com/tlverse/tmle3mopttx/issues",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.2.0",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libuv1-dev\nlibxml2-dev",
  "Repository": "https://tlverse.r-universe.dev",
  "Date/Publication": "2022-08-06 03:03:11 UTC",
  "RemoteUrl": "https://github.com/tlverse/tmle3mopttx",
  "RemoteRef": "HEAD",
  "RemoteSha": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 10:33:38 UTC",
    "User": "root"
  },
  "Author": "Ivana Malenica [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-7404-8088>),\nJeremy Coyle [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-9874-6649>),\nMark van der Laan [aut, ths],\nHaodong Li [ctb]",
  "Maintainer": "Ivana Malenica <imalenica@berkeley.edu>",
  "MD5sum": "d7756a47e34d6ea5e3c2d2121259bd68",
  "_user": "tlverse",
  "_type": "src",
  "_file": "tmle3mopttx_1.0.0.tar.gz",
  "_fileid": "95fe2859e2fcfe77222dc6fd546b0ac258afbe222d27ad9ca4e36fce3e8a297b",
  "_filesize": 259275,
  "_sha256": "95fe2859e2fcfe77222dc6fd546b0ac258afbe222d27ad9ca4e36fce3e8a297b",
  "_created": "2026-05-19T10:33:38.000Z",
  "_published": "2026-06-02T14:30:28.205Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79094552036,
      "time": 298,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7081176731"
    },
    {
      "job": 79094552495,
      "time": 260,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7081163840"
    },
    {
      "job": 79094552182,
      "time": 177,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7081225419"
    },
    {
      "job": 79094552331,
      "time": 258,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7081181473"
    },
    {
      "job": 79094551332,
      "time": 253,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7081077620"
    },
    {
      "job": 79094551166,
      "time": 261,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7360654221"
    },
    {
      "job": 79094552399,
      "time": 214,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7081148043"
    },
    {
      "job": 79094552041,
      "time": 214,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7081148622"
    },
    {
      "job": 79094552226,
      "time": 203,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7081144929"
    }
  ],
  "_buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/tlverse/tmle3mopttx",
  "_commit": {
    "id": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
    "author": "Ivana <imalenica.stat@gmail.com>",
    "committer": "Ivana <imalenica.stat@gmail.com>",
    "message": "Update link\n",
    "time": 1659754991
  },
  "_maintainer": {
    "name": "Ivana Malenica",
    "email": "imalenica@berkeley.edu",
    "login": "imalenica",
    "twitter": "@podTockom",
    "description": "Wojcicki and Troper HDSI Fellow at the Harvard Department of Statistics",
    "uuid": 13910997,
    "orcid": "0000-0002-7404-8088"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.3.0",
      "role": "Depends"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "uuid",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "sl3",
      "role": "Imports"
    },
    {
      "package": "tmle3",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "hal9001",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "Rsolnp",
      "role": "Suggests"
    },
    {
      "package": "nnls",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    },
    {
      "package": "speedglm",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    }
  ],
  "_owner": "tlverse",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "categorical-treatment",
    "causal-inference",
    "heterogeneous-effects",
    "machine-learning",
    "optimal-individualized-treatment",
    "targeted-learning",
    "variable-importance"
  ],
  "_stars": 13,
  "_contributors": [
    {
      "user": "imalenica",
      "count": 153,
      "uuid": 13910997
    },
    {
      "user": "jeremyrcoyle",
      "count": 11,
      "uuid": 3893286
    },
    {
      "user": "nhejazi",
      "count": 2,
      "uuid": 8527276
    }
  ],
  "_userbio": {
    "uuid": 36939258,
    "type": "organization",
    "name": "tlverse",
    "description": "Ecosystem of R packages for targeted (causal) machine learning"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tmle3mopttx"
  },
  "_devurl": "https://github.com/tlverse/tmle3mopttx",
  "_searchresults": 61,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tmle3mopttx.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "create_mv_learners",
    "LF_rule",
    "normalize_rows",
    "Optimal_Rule_Q_learning",
    "Optimal_Rule_Revere",
    "Param_TSM_name",
    "Q_learning",
    "tmle3_mopttx_blip_revere",
    "tmle3_mopttx_Q",
    "tmle3_mopttx_vim",
    "tmle3_Spec_mopttx_blip_revere",
    "tmle3_Spec_mopttx_Q",
    "tmle3_Spec_mopttx_vim",
    "vals_from_factor"
  ],
  "_datasets": [
    {
      "name": "data_bin",
      "title": "Mock data set with Binary Treatment",
      "object": "data_bin",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "W1",
        "W2",
        "W3",
        "A",
        "Y"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_cat",
      "title": "Mock data set with Categorical Treatment",
      "object": "data_cat",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "W1",
        "W2",
        "W3",
        "W4",
        "A",
        "Y"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_cat_realistic",
      "title": "Mock data set with Categorical Treatment and rare treatment",
      "object": "data_cat_realistic",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "W1",
        "W2",
        "W3",
        "W4",
        "A",
        "Y"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_cat_vim",
      "title": "Mock data set for Variable Importance Analysis with Categorical Treatment",
      "object": "data_cat_vim",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "W1",
        "W2",
        "W3",
        "W4",
        "A",
        "Y"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "create_mv_learners",
      "title": "Make SL of multivariate learners",
      "topics": [
        "create_mv_learners"
      ]
    },
    {
      "page": "data_bin",
      "title": "Mock data set with Binary Treatment",
      "topics": [
        "data_bin"
      ]
    },
    {
      "page": "data_cat",
      "title": "Mock data set with Categorical Treatment",
      "topics": [
        "data_cat"
      ]
    },
    {
      "page": "data_cat_realistic",
      "title": "Mock data set with Categorical Treatment and rare treatment",
      "topics": [
        "data_cat_realistic"
      ]
    },
    {
      "page": "data_cat_vim",
      "title": "Mock data set for Variable Importance Analysis with Categorical Treatment",
      "topics": [
        "data_cat_vim"
      ]
    },
    {
      "page": "LF_rule",
      "title": "Dynamic Likelihood Factor",
      "topics": [
        "LF_rule"
      ]
    },
    {
      "page": "normalize_rows",
      "title": "Normalize rows",
      "topics": [
        "normalize_rows"
      ]
    },
    {
      "page": "Optimal_Rule_Q_learning",
      "title": "Learns the Optimal Rule given a tmle_task and likelihood, using Q learning.",
      "topics": [
        "Optimal_Rule_Q_learning"
      ]
    },
    {
      "page": "Optimal_Rule_Revere",
      "title": "Learning the Optimal Rule using the Revere framework",
      "topics": [
        "Optimal_Rule_Revere"
      ]
    },
    {
      "page": "Param_TSM_name",
      "title": "Treatment Specific Mean with names specifying the covariates the rule depends on.",
      "topics": [
        "Param_TSM_name"
      ]
    },
    {
      "page": "Q_learning",
      "title": "Q learning wrapper",
      "topics": [
        "Q_learning"
      ]
    },
    {
      "page": "tmle3_mopttx_blip_revere",
      "title": "Mean under the Optimal Individualized Treatment Rule",
      "topics": [
        "tmle3_mopttx_blip_revere"
      ]
    },
    {
      "page": "tmle3_mopttx_Q",
      "title": "Mean under the Optimal Individualized Treatment Rule, using Q learning",
      "topics": [
        "tmle3_mopttx_Q"
      ]
    },
    {
      "page": "tmle3_mopttx_vim",
      "title": "Mean under the Optimal Individualized Treatment Rule",
      "topics": [
        "tmle3_mopttx_vim"
      ]
    },
    {
      "page": "tmle3_Spec_mopttx_blip_revere",
      "title": "TMLE for the Mean Under the Optimal Individualized Rule",
      "topics": [
        "tmle3_Spec_mopttx_blip_revere"
      ]
    },
    {
      "page": "tmle3_Spec_mopttx_Q",
      "title": "Defines the Mean Under the Optimal Individualized Rule with Categorical Treatment, estimated using Q learning (single step)",
      "topics": [
        "tmle3_Spec_mopttx_Q"
      ]
    },
    {
      "page": "tmle3_Spec_mopttx_vim",
      "title": "Variable Importance with the Mean Under the Optimal Individualized Rule",
      "topics": [
        "tmle3_Spec_mopttx_vim"
      ]
    },
    {
      "page": "vals_from_factor",
      "title": "Get factors",
      "topics": [
        "vals_from_factor"
      ]
    }
  ],
  "_readme": "https://github.com/tlverse/tmle3mopttx/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "assertthat",
    "backports",
    "base64enc",
    "BBmisc",
    "bitops",
    "bslib",
    "cachem",
    "caret",
    "caTools",
    "checkmate",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "crayon",
    "data.table",
    "delayed",
    "diagram",
    "digest",
    "dplyr",
    "e1071",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "foreach",
    "fs",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "glmnet",
    "globals",
    "glue",
    "gower",
    "gplots",
    "gtable",
    "gtools",
    "hal9001",
    "hardhat",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "igraph",
    "ipred",
    "isoband",
    "iterators",
    "jquerylib",
    "jsonlite",
    "KernSmooth",
    "knitr",
    "labeling",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "ModelMetrics",
    "mvtnorm",
    "nlme",
    "nnet",
    "numDeriv",
    "origami",
    "parallelly",
    "pillar",
    "pkgconfig",
    "plyr",
    "prettyunits",
    "pROC",
    "prodlim",
    "progress",
    "progressr",
    "proxy",
    "purrr",
    "R.methodsS3",
    "R.oo",
    "R.utils",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "recipes",
    "reshape2",
    "rlang",
    "rmarkdown",
    "ROCR",
    "rpart",
    "rstackdeque",
    "S7",
    "sass",
    "scales",
    "shape",
    "sl3",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tinytex",
    "tmle3",
    "tzdb",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "visNetwork",
    "withr",
    "xfun",
    "yaml"
  ],
  "_score": 4.376394442037267,
  "_indexed": true,
  "_nocasepkg": "tmle3mopttx",
  "_universes": [
    "tlverse",
    "imalenica"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-19T10:36:35.000Z",
      "distro": "noble",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "a9931136df9cb271a781d02f12c968208a3de1d207de0f91ad7103f31bac391b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-19T10:36:32.000Z",
      "distro": "noble",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "951368d308f035f14d8d128359e926af4706cac82c841e2aab82c5e64f55caf8",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-19T10:40:00.000Z",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "8aa31d91234a673a8d785173de3ff829ebafddc301bbf8f3fc5cad082e37960a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-19T10:37:34.000Z",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "a195688783be12af4ef44235bbb5c91f4153bcde35b1469506471183292ca491",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-19T10:35:24.000Z",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "54394744a5ac53347b15594e10a02fba05be50eb6505da39412ede276b5b6cf1",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-19T10:35:22.000Z",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "416f74b936f92af56d63dc6107c260943dc5c4fc14c4b6e3f762a76142482ada",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-19T10:35:12.000Z",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "1d111c65e25ff81c2aba53d1e92a6835387f529143a9ca81e222d348dba6fb54",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-02T14:30:01.000Z",
      "commit": "3c0e8437af88ca8c54fcec1e953652feaf6c9003",
      "fileid": "ea616a5ad728ae72142840a2087530f02d08a8b12a3f03454266c807a8b2bd88",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tlverse/actions/runs/26091493294"
    }
  ]
}