{
  "_id": "6acb5b22fe5cc25786e8ea19",
  "Package": "FactorHet",
  "Title": "Estimate Heterogeneous Effects in Factorial Experiments Using\nGrouping and Sparsity",
  "Version": "1.0.0",
  "Date": "2025-01-08",
  "Authors@R": "c(\nperson(\"Max\", \"Goplerud\", role = c(\"aut\", \"cre\"), email = \"mgoplerud@austin.utexas.edu\"),\nperson(given=c(\"Nicole\", \"E.\"), \"Pashley\", role = c(\"aut\"), email = \"nicole.pashley@rutgers.edu\"),\nperson(\"Kosuke\", \"Imai\", role = c(\"aut\"), email = \"imai@harvard.edu\"))",
  "Description": "Estimates heterogeneous effects in factorial (and\nconjoint) models. The methodology employs a Bayesian finite\nmixture of regularized logistic regressions, where moderators\ncan affect each observation's probability of group membership\nand a sparsity-inducing prior fuses together levels of each\nfactor while respecting ANOVA-style sum-to-zero constraints.\nGoplerud, Imai, and Pashley (2024)\n<doi:10.48550/ARXIV.2201.01357> provide further details.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "URL": "https://github.com/mgoplerud/FactorHet",
  "BugReports": "https://github.com/mgoplerud/FactorHet/issues",
  "Config/pak/sysreqs": "libgdal-dev gdal-bin libgeos-dev libglu1-mesa-dev\nlibgmp3-dev libgsl0-dev jags libicu-dev libxml2-dev libmpfr-dev\nlibopenmpi-dev libproj-dev",
  "Repository": "https://mgoplerud.r-universe.dev",
  "Date/Publication": "2025-01-10 17:24:35 UTC",
  "RemoteUrl": "https://github.com/mgoplerud/factorhet",
  "RemoteRef": "HEAD",
  "RemoteSha": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-11 09:19:13 UTC",
    "User": "root"
  },
  "Author": "Max Goplerud [aut, cre],\nNicole E. Pashley [aut],\nKosuke Imai [aut]",
  "Maintainer": "Max Goplerud <mgoplerud@austin.utexas.edu>",
  "_user": "mgoplerud",
  "_type": "src",
  "_file": "FactorHet_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/0543287ea9a68d4dc1fbc4be01b2f2d15550f4518798ea2ae256991b294f4b3c",
  "_filesize": 381519,
  "_sha256": "0543287ea9a68d4dc1fbc4be01b2f2d15550f4518798ea2ae256991b294f4b3c",
  "_expires": "2027-01-19T09:47:13.000Z",
  "_created": "2026-10-11T09:19:13.000Z",
  "_published": "2026-10-11T09:47:14.738Z",
  "_buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114436281965,
      "time": 323,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11698185854"
    },
    {
      "job": 114436282042,
      "time": 396,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11697975714"
    },
    {
      "job": 114436282059,
      "time": 331,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11697784689"
    },
    {
      "job": 114436282014,
      "time": 407,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11697869546"
    },
    {
      "job": 114436282015,
      "time": 351,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11698312763"
    },
    {
      "job": 114436282049,
      "time": 448,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11698760974"
    },
    {
      "job": 114436281991,
      "time": 360,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11698247797"
    },
    {
      "job": 114436281975,
      "time": 681,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11698500942"
    },
    {
      "job": 114435585521,
      "time": 240,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11697434754"
    },
    {
      "job": 114436281934,
      "time": 152,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11697069604"
    },
    {
      "job": 114436282081,
      "time": 462,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11698915157"
    },
    {
      "job": 114436282087,
      "time": 526,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11698255441"
    },
    {
      "job": 114436282057,
      "time": 404,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11698086208"
    },
    {
      "job": 114436282104,
      "time": 425,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11698430717"
    },
    {
      "job": 114436282112,
      "time": 412,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11698640419"
    }
  ],
  "_upstream": "https://github.com/mgoplerud/factorhet",
  "_commit": {
    "id": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
    "author": "Max Goplerud <mgoplerud@austin.utexas.edu>",
    "committer": "Max Goplerud <mgoplerud@austin.utexas.edu>",
    "message": "Turn T into TRUE\n",
    "time": 1736529875
  },
  "_maintainer": {
    "name": "Max Goplerud",
    "email": "mgoplerud@austin.utexas.edu",
    "login": "mgoplerud",
    "description": "Assistant Professor of Government at the University of Texas at Austin",
    "uuid": 25274138
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.4.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.1",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ParamHelpers",
      "role": "Imports"
    },
    {
      "package": "mlr",
      "role": "Imports"
    },
    {
      "package": "mlrMBO",
      "role": "Imports"
    },
    {
      "package": "smoof",
      "role": "Imports"
    },
    {
      "package": "lbfgs",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "FNN",
      "role": "Suggests"
    },
    {
      "package": "RSpectra",
      "role": "Suggests"
    },
    {
      "package": "mclust",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "tgp",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "tictoc",
      "role": "Suggests"
    }
  ],
  "_owner": "mgoplerud",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "mgoplerud",
      "count": 14,
      "uuid": 25274138
    }
  ],
  "_userbio": {
    "uuid": 25274138,
    "type": "user",
    "name": "Max Goplerud",
    "followers": 17,
    "description": "Assistant Professor of Government at the University of Texas at Austin"
  },
  "_downloads": {
    "count": 427,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/FactorHet"
  },
  "_devurl": "https://github.com/mgoplerud/factorhet",
  "_searchresults": 2,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/FactorHet.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/mgoplerud/factorhet",
  "_realowner": "mgoplerud",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-01-13"
    }
  ],
  "_exports": [
    "ACE",
    "AME",
    "AMIE",
    "cjoint_plot",
    "diff_AME",
    "FactorHet",
    "FactorHet_control",
    "FactorHet_init",
    "FactorHet_mbo",
    "FactorHet_mbo_control",
    "FactorHet_refit",
    "HTE_by_individual",
    "HTE_by_moderator",
    "manual_AME",
    "margeff_moderators",
    "marginal_ACE",
    "marginal_AME",
    "marginal_AMIE",
    "moderator_AME",
    "posterior_by_moderators",
    "posterior_FactorHet",
    "visualize_MBO"
  ],
  "_datasets": [
    {
      "name": "immigration",
      "title": "Small dataset on immigration preferences",
      "object": "immigration",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CaseID",
        "contest_no",
        "choice_id",
        "Chosen_Immigrant",
        "Country",
        "Ed",
        "Plans",
        "Gender",
        "party_ID",
        "census_div"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calc_effects",
      "title": "Calculate marginal effects",
      "topics": [
        "ACE",
        "AME",
        "AMIE",
        "manual_AME"
      ]
    },
    {
      "page": "cjoint_plot",
      "title": "Plot a FactorHet object",
      "topics": [
        "cjoint_plot"
      ]
    },
    {
      "page": "diff_AME",
      "title": "Difference between AMEs in each group",
      "topics": [
        "diff_AME"
      ]
    },
    {
      "page": "FactorHet",
      "title": "Estimate heterogeneous effects in factorial and conjoint experiments",
      "topics": [
        "FactorHet",
        "FactorHet_mbo"
      ]
    },
    {
      "page": "FactorHet_control",
      "title": "Control for FactorHet estimation",
      "topics": [
        "FactorHet_control"
      ]
    },
    {
      "page": "FactorHet_init",
      "title": "Arguments for initializing FactorHet",
      "topics": [
        "FactorHet_init"
      ]
    },
    {
      "page": "FactorHet_mbo_control",
      "title": "Control for model-based optimization",
      "topics": [
        "FactorHet_mbo_control"
      ]
    },
    {
      "page": "FactorHet_refit",
      "title": "Refit model using estimated sparsity patterns",
      "topics": [
        "FactorHet_refit"
      ]
    },
    {
      "page": "FactorHet-class",
      "title": "Generic methods for FactorHet models",
      "topics": [
        "AIC.FactorHet",
        "BIC.FactorHet",
        "coef.FactorHet",
        "FactorHet-class",
        "formula.FactorHet",
        "logLik.FactorHet",
        "plot.FactorHet",
        "posterior_FactorHet",
        "print.FactorHet",
        "print.FactorHet_vis",
        "summary.FactorHet",
        "vcov.FactorHet",
        "visualize_MBO"
      ]
    },
    {
      "page": "HTE",
      "title": "Estimate heterogeneous treatment effects by individual or moderator",
      "topics": [
        "HTE",
        "HTE_by_individual",
        "HTE_by_moderator"
      ]
    },
    {
      "page": "immigration",
      "title": "Small dataset on immigration preferences",
      "topics": [
        "immigration"
      ]
    },
    {
      "page": "margeff_moderators",
      "title": "Compute association between moderators and group membership",
      "topics": [
        "margeff_moderators"
      ]
    },
    {
      "page": "posterior_by_moderators",
      "title": "Visualize the posterior by observed moderators",
      "topics": [
        "posterior_by_moderators"
      ]
    },
    {
      "page": "predict.FactorHet",
      "title": "Predict after using FactorHet",
      "topics": [
        "predict.FactorHet"
      ]
    }
  ],
  "_readme": "https://github.com/mgoplerud/factorhet/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "BBmisc",
    "checkmate",
    "cli",
    "cpp11",
    "data.table",
    "farver",
    "fastmatch",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lbfgs",
    "lhs",
    "lifecycle",
    "Matrix",
    "mlr",
    "mlrMBO",
    "parallelMap",
    "ParamHelpers",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "smoof",
    "stringi",
    "survival",
    "vctrs",
    "viridisLite",
    "withr",
    "XML"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3.5440680443502757,
  "_indexed": true,
  "_nocasepkg": "factorhet",
  "_universes": [
    "mgoplerud"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-11T09:21:53.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/be93fa13bfb361ad162e2994b2d54667ee47617fe0300d5e53f7e707e2dafff3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-11T09:22:35.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/d2ccbdce14f399489a11e688b61f8753f5a69cd28c34a2880d0a5560fd3b8de7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-11T09:21:55.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/fad1cea634b48f92ac5ac35a1cd73515b0ad9622090f38025f4e89e46a401890",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-11T09:22:13.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/da7f58b5c9f329038e00625d298eab8a53e5fbd8518773d602bd256be84cd24a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-11T09:42:38.000Z",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/27d3362faf27f63ef91d1e5a6628facd4a493c43b2466b0776195fbea7ac599c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-11T09:29:04.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/5db5b93279ea7fdf7eac933c2aae8098acf842db3ceec62ae29ac0467c206e84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-11T09:41:25.000Z",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/14413b4fe432d464531fdb085c2a7804b5cf226bc897ae54dab2319788cb22d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-11T09:30:10.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/bd1662f0ef355270b3e9f2a26e59756c8672fb0de66e67fa954d76a9d0283fdb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-11T09:22:06.000Z",
      "arch": "emscripten",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/42e327ce0d93cb544bcc2e8fc4e6fa7d7636cae45ae58e13af78769a6c60ce88",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-11T09:23:14.000Z",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/a13c649041fb8b7b59dd8582637052cbfd6888fbe726b005c282c9ad609c4723",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-11T09:21:30.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/4aa7cfa2e2b1a71ee8216b656490adb4a6154a8a39d4fd5f93ca4e87691eabe4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-11T09:21:05.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/d26e5e8ef32c674fd8fd7653bc3724cc2169180c0c5dbb57dec9c68532cd6717",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-11T09:22:38.000Z",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/501358b43aca270162e7a3cafb4d112a66c57f60a1185baafbeb3cc2d6633711",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-11T09:21:06.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "https://r2.ropensci.org/829102b077d28944e4f5bec09375e7593e3f87cbace7bb17d5960474c9b105ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/38127746786"
    }
  ]
}