{
  "_id": "6a13f8c7acfb0bcc41d34704",
  "Package": "htetree",
  "Type": "Package",
  "Title": "Causal Inference with Tree-Based Machine Learning Algorithms",
  "Version": "0.1.23",
  "Authors@R": "c(\nperson(\"Jiahui\", \"Xu\", email = \"jiahuixu@ucla.edu\", role = c(\"cre\", \"aut\")),\nperson(\"Tanvi\", \"Shinkre\", email = \"tanvishinkre@ucla.edu\", role = \"aut\"),\nperson(\"Jennie\", \"Brand\", email = \"brand@soc.ucla.edu\", role = \"aut\"))",
  "Description": "Estimating heterogeneous treatment effects with tree-based\nmachine learning algorithms and visualizing estimated results\nin flexible and presentation-ready ways. For more information,\nsee Brand, Xu, Koch, and Geraldo (2021)\n<doi:10.1177/0081175021993503>. Our current package first\nstarted as a fork of the 'causalTree' package on 'GitHub' and\nwe greatly appreciate the authors for their extremely useful\nand free package.",
  "License": "GPL-2 | GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-25 07:17:41 UTC",
    "User": "root"
  },
  "Author": "Jiahui Xu [cre, aut], Tanvi Shinkre [aut], Jennie Brand [aut]",
  "Maintainer": "Jiahui Xu <jiahuixu@ucla.edu>",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev zlib1g-dev",
  "Repository": "https://jiahuixu1.r-universe.dev",
  "Date/Publication": "2026-03-26 09:17:01 UTC",
  "RemoteUrl": "https://github.com/cran/htetree",
  "RemoteRef": "HEAD",
  "RemoteSha": "ca3b77abdf95cfea15f9147e52df301196b38575",
  "MD5sum": "ba60f1faab0b02b3816dcccb0f2de1ef",
  "_user": "jiahuixu1",
  "_type": "src",
  "_file": "htetree_0.1.23.tar.gz",
  "_fileid": "cf7c905d00deb33b0785ca6909218b011737f6d2aae69793267b667b086daf2d",
  "_filesize": 348723,
  "_sha256": "cf7c905d00deb33b0785ca6909218b011737f6d2aae69793267b667b086daf2d",
  "_created": "2026-05-25T07:17:41.000Z",
  "_published": "2026-05-25T07:22:47.303Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77672408303,
      "time": 139,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193555912"
    },
    {
      "job": 77672408295,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193559701"
    },
    {
      "job": 77672408320,
      "time": 136,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193555404"
    },
    {
      "job": 77672408310,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193557023"
    },
    {
      "job": 77672408316,
      "time": 210,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193564968"
    },
    {
      "job": 77672408314,
      "time": 245,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193577380"
    },
    {
      "job": 77672408298,
      "time": 138,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193550546"
    },
    {
      "job": 77672408321,
      "time": 240,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193572896"
    },
    {
      "job": 77672057235,
      "time": 180,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193522797"
    },
    {
      "job": 77672408288,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193553491"
    },
    {
      "job": 77672408301,
      "time": 264,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193585874"
    },
    {
      "job": 77672408317,
      "time": 103,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193547437"
    },
    {
      "job": 77672408305,
      "time": 129,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193553846"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/htetree",
  "_commit": {
    "id": "ca3b77abdf95cfea15f9147e52df301196b38575",
    "author": "Jiahui Xu <jiahuixu@ucla.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.23\n",
    "time": 1774516621
  },
  "_maintainer": {
    "name": "Jiahui Xu",
    "email": "jiahuixu@ucla.edu",
    "login": "jiahuixu1",
    "description": "",
    "uuid": 87400311
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "grf",
      "role": "Imports"
    },
    {
      "package": "partykit",
      "role": "Imports"
    },
    {
      "package": "data.tree",
      "role": "Imports"
    },
    {
      "package": "Matching",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "rpart",
      "role": "Imports"
    },
    {
      "package": "rpart.plot",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "optmatch",
      "role": "Suggests"
    },
    {
      "package": "haven",
      "role": "Suggests"
    },
    {
      "package": "foreign",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "remotes",
      "role": "Suggests"
    },
    {
      "package": "party",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-13",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.23",
      "date": "2026-03-26"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jiahuixu1",
      "count": 8,
      "uuid": 87400311
    }
  ],
  "_userbio": {
    "uuid": 87400311,
    "type": "user",
    "name": "jiahuixu1"
  },
  "_downloads": {
    "count": 580,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/htetree"
  },
  "_searchresults": 17,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/htetree.html",
    "manual.pdf"
  ],
  "_realowner": "jiahuixu1",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.13",
      "date": "2023-03-21"
    },
    {
      "version": "0.1.14",
      "date": "2023-03-22"
    },
    {
      "version": "0.1.16",
      "date": "2023-04-25"
    },
    {
      "version": "0.1.17",
      "date": "2023-08-12"
    },
    {
      "version": "0.1.18",
      "date": "2023-11-29"
    },
    {
      "version": "0.1.19",
      "date": "2024-10-13"
    },
    {
      "version": "0.1.20",
      "date": "2025-01-17"
    },
    {
      "version": "0.1.23",
      "date": "2026-03-26"
    }
  ],
  "_exports": [
    "bundScript",
    "causalForest",
    "causalTree",
    "causalTree.branch",
    "causalTree.control",
    "causalTree.matrix",
    "causalTreecallback",
    "causalTreeco",
    "clearTemp",
    "est.causalTree",
    "estimate.causalTree",
    "formatg",
    "getDefaultPath",
    "getDensities",
    "honest.causalTree",
    "honest.est.causalTree",
    "honest.est.rparttree",
    "honest.rparttree",
    "hte_causalTree",
    "hte_forest",
    "hte_ipw",
    "hte_match",
    "hte_plot",
    "hte_plot_line",
    "htetree.anova",
    "importance",
    "init.causalForest",
    "makeplots",
    "matchinleaves",
    "model.frame.causalTree",
    "na.causalTree",
    "plotOutcomes",
    "predict.causalForest",
    "runDynamic",
    "saveBCSS",
    "saveFiles",
    "saveGCSS",
    "saveInd",
    "saveServ",
    "saveUI"
  ],
  "_datasets": [
    {
      "name": "simulation.1",
      "title": "A Simulated Dataset",
      "object": "simulation.1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "x1",
        "x2",
        "x3",
        "x4",
        "x5",
        "x6",
        "x7",
        "x8",
        "x9",
        "x10",
        "y",
        "treatment"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bundScript",
      "title": "Include the Javascript Used in Shiny",
      "topics": [
        "bundScript"
      ]
    },
    {
      "page": "causalTree",
      "title": "Causal Effect Regression and Estimation Trees",
      "topics": [
        "causalTree"
      ]
    },
    {
      "page": "causalTree.branch",
      "title": "Compute the \"branches\" to be drawn for an 'causalTree' object",
      "topics": [
        "causalTree.branch"
      ]
    },
    {
      "page": "causalTree.control",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "causalTree.control"
      ]
    },
    {
      "page": "causalTree.matrix",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "causalTree.matrix"
      ]
    },
    {
      "page": "causalTreecallback",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "causalTreecallback"
      ]
    },
    {
      "page": "causalTreeco",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "causalTreeco"
      ]
    },
    {
      "page": "clearTemp",
      "title": "Clear Temporary Files",
      "topics": [
        "clearTemp"
      ]
    },
    {
      "page": "est.causalTree",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "est.causalTree"
      ]
    },
    {
      "page": "estimate.causalTree",
      "title": "estimate causal Tree",
      "topics": [
        "estimate.causalTree"
      ]
    },
    {
      "page": "formatg",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "formatg"
      ]
    },
    {
      "page": "getDefaultPath",
      "title": "Get the Current Working Directory",
      "topics": [
        "getDefaultPath"
      ]
    },
    {
      "page": "getDensities",
      "title": "Getting Distribution in Treatment and Control Groups",
      "topics": [
        "getDensities"
      ]
    },
    {
      "page": "honest.causalTree",
      "title": "Causal Effect Regression and Estimation Trees: One-step honest estimation",
      "topics": [
        "honest.causalTree"
      ]
    },
    {
      "page": "honest.est.causalTree",
      "title": "honest re-estimation and change the frame of object using estimation sample",
      "topics": [
        "honest.est.causalTree"
      ]
    },
    {
      "page": "honest.est.rparttree",
      "title": "honest re-estimation and change the frame of object using estimation sample",
      "topics": [
        "honest.est.rparttree"
      ]
    },
    {
      "page": "honest.rparttree",
      "title": "Honest recursive partitioning Tree",
      "topics": [
        "honest.rparttree"
      ]
    },
    {
      "page": "hte_causalTree",
      "title": "Estimate Heterogeneous Treatment Effect via Causal Tree",
      "topics": [
        "hte_causalTree"
      ]
    },
    {
      "page": "hte_forest",
      "title": "Estimate Heterogeneous Treatment Effect via Random Forest",
      "topics": [
        "hte_forest"
      ]
    },
    {
      "page": "hte_ipw",
      "title": "Estimate Heterogeneous Treatment Effect via Adjusted Causal Tree",
      "topics": [
        "hte_ipw"
      ]
    },
    {
      "page": "hte_match",
      "title": "Estimate Heterogeneous Treatment Effect via Adjusted Causal Tree",
      "topics": [
        "hte_match"
      ]
    },
    {
      "page": "hte_plot",
      "title": "Visualize the Estimated Results",
      "topics": [
        "hte_plot"
      ]
    },
    {
      "page": "hte_plot_line",
      "title": "Visualize the Estimated Results",
      "topics": [
        "hte_plot_line"
      ]
    },
    {
      "page": "htetree.anova",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "htetree.anova"
      ]
    },
    {
      "page": "importance",
      "title": "Caclulate variable importance",
      "topics": [
        "importance"
      ]
    },
    {
      "page": "causalForest",
      "title": "Causal Effect Regression and Estimation Forests (Tree Ensembles)",
      "topics": [
        "causalForest",
        "init.causalForest",
        "predict.causalForest"
      ]
    },
    {
      "page": "makeplots",
      "title": "Visualize Causal Tree and the Estimated Results",
      "topics": [
        "makeplots"
      ]
    },
    {
      "page": "matchinleaves",
      "title": "NN Matching in Leaves",
      "topics": [
        "matchinleaves"
      ]
    },
    {
      "page": "model.frame.causalTree",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "model.frame.causalTree"
      ]
    },
    {
      "page": "na.causalTree",
      "title": "Intermediate function for 'causalTree'",
      "topics": [
        "na.causalTree"
      ]
    },
    {
      "page": "plotOutcomes",
      "title": "Intermediate function for 'hte_plot_line'",
      "topics": [
        "plotOutcomes"
      ]
    },
    {
      "page": "runDynamic",
      "title": "Visualize Causal Tree and Treatment Effects via Shiny",
      "topics": [
        "runDynamic"
      ]
    },
    {
      "page": "saveBCSS",
      "title": "Save Javascript Embedded in Shiny App",
      "topics": [
        "saveBCSS"
      ]
    },
    {
      "page": "saveFiles",
      "title": "Save Necessary Files to Run Shiny App",
      "topics": [
        "saveFiles"
      ]
    },
    {
      "page": "saveGCSS",
      "title": "Save CSS File Embedded in Shiny App",
      "topics": [
        "saveGCSS"
      ]
    },
    {
      "page": "saveInd",
      "title": "Save HTML Index Embedded in Shiny App",
      "topics": [
        "saveInd"
      ]
    },
    {
      "page": "saveServ",
      "title": "Save Shiny Server Temporarily",
      "topics": [
        "saveServ"
      ]
    },
    {
      "page": "saveUI",
      "title": "Save Shiny UI Temporarily",
      "topics": [
        "saveUI"
      ]
    },
    {
      "page": "simulation.1",
      "title": "A Simulated Dataset",
      "topics": [
        "simulation.1"
      ]
    }
  ],
  "_rundeps": [
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "commonmark",
    "data.tree",
    "DiceKriging",
    "digest",
    "dplyr",
    "fastmap",
    "fontawesome",
    "Formula",
    "fs",
    "generics",
    "glue",
    "grf",
    "htmltools",
    "httpuv",
    "inum",
    "jquerylib",
    "jsonlite",
    "later",
    "lattice",
    "libcoin",
    "lifecycle",
    "lmtest",
    "magrittr",
    "MASS",
    "Matching",
    "Matrix",
    "memoise",
    "mime",
    "mvtnorm",
    "otel",
    "partykit",
    "pillar",
    "pkgconfig",
    "promises",
    "R6",
    "rappdirs",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "rpart",
    "rpart.plot",
    "sandwich",
    "sass",
    "shiny",
    "sourcetools",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "xtable",
    "zoo"
  ],
  "_score": 1.2304489213782739,
  "_indexed": true,
  "_nocasepkg": "htetree",
  "_universes": [
    "jiahuixu1"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.23",
      "date": "2026-05-25T07:20:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "13666637c69b0df8a9b60a32f989ddf98fd4ff14a5436280e01f4b7de67b6fc3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.23",
      "date": "2026-05-25T07:20:11.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "62480f59a23c5b1b3edb2d9f5e2138bd503bad8f523e69ebdea8eff84c959ed7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.23",
      "date": "2026-05-25T07:19:59.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "0590f119d032b4a39c721f1df89dd93455c77c03e2844280cec98bf117789674",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.23",
      "date": "2026-05-25T07:20:02.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "2cd222f4d3db227ea0ec7821ac84193e761a7459d9538ae21f1302d1ca1c211e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.23",
      "date": "2026-05-25T07:20:30.000Z",
      "arch": "aarch64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "a60ffa8dd2f27ba136f07a57337586dd84537a3ddb29bc368b87379fa63a30d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.23",
      "date": "2026-05-25T07:21:08.000Z",
      "arch": "x86_64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "e9163c7930de7168d1ed9dd576c2d9ac6b7af68f9a87a0f40d78e17359112fe6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.23",
      "date": "2026-05-25T07:19:39.000Z",
      "arch": "aarch64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "a3d66c194cce2b03a05c4e2fb51e6834d7ab6ec0c0ab269ef797101f1172d7ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.23",
      "date": "2026-05-25T07:20:46.000Z",
      "arch": "x86_64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "c024fd465a6df989684ee029832bca0c1403eca96c9188d5afeafb7e0699a4b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.23",
      "date": "2026-05-25T07:20:04.000Z",
      "arch": "emscripten",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "7380dcfbaa41f776c215740c17677979677a019845fd153bd117455b154331b1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.23",
      "date": "2026-05-25T07:21:38.000Z",
      "arch": "x86_64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "d675c5f236cee46fc9c9ce4237d4d8f2c5726ab050c3e9552f17f9029175cc7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.23",
      "date": "2026-05-25T07:18:57.000Z",
      "arch": "x86_64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "02707cce8fdde5cd7d2894551935fecb0c23b76def5c3b651c59c789de688b3d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.23",
      "date": "2026-05-25T07:19:36.000Z",
      "arch": "x86_64",
      "commit": "ca3b77abdf95cfea15f9147e52df301196b38575",
      "fileid": "da701dd6f6df057335f9d7d0ef7eaa7afe15af933d57c0a069afbb9454a94eeb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jiahuixu1/actions/runs/26388392468"
    }
  ]
}