{
  "_id": "6a101b5cacfb0bcc41c870c6",
  "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-05-14 09:12:23 UTC",
    "User": "root"
  },
  "Author": "Max Goplerud [aut, cre],\nNicole E. Pashley [aut],\nKosuke Imai [aut]",
  "Maintainer": "Max Goplerud <mgoplerud@austin.utexas.edu>",
  "MD5sum": "d1191c96437b981351da5870be846f46",
  "_user": "mgoplerud",
  "_type": "src",
  "_file": "FactorHet_1.0.0.tar.gz",
  "_fileid": "f9c03d8762b6794cd5a0dc6da97c4f91b85293e875cd92882bf436680754f751",
  "_filesize": 382589,
  "_sha256": "f9c03d8762b6794cd5a0dc6da97c4f91b85293e875cd92882bf436680754f751",
  "_created": "2026-05-14T09:12:23.000Z",
  "_published": "2026-05-22T09:01:16.151Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77348404916,
      "time": 370,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6991173061"
    },
    {
      "job": 77348405055,
      "time": 414,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6991185848"
    },
    {
      "job": 77348404897,
      "time": 365,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6991170883"
    },
    {
      "job": 77348405015,
      "time": 394,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6991180783"
    },
    {
      "job": 77348405407,
      "time": 281,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6991148133"
    },
    {
      "job": 77348405397,
      "time": 507,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6991210248"
    },
    {
      "job": 77348405191,
      "time": 350,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6991166310"
    },
    {
      "job": 77348405104,
      "time": 552,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6991223247"
    },
    {
      "job": 77348404085,
      "time": 230,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6991068476"
    },
    {
      "job": 77348404323,
      "time": 157,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156736639"
    },
    {
      "job": 77348405251,
      "time": 397,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6991179955"
    },
    {
      "job": 77348405348,
      "time": 432,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6991189596"
    },
    {
      "job": 77348405300,
      "time": 437,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6991190979"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 25274138
  },
  "_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",
    "description": "Assistant Professor of Government at the University of Texas at Austin"
  },
  "_downloads": {
    "count": 575,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/FactorHet"
  },
  "_devurl": "https://github.com/mgoplerud/factorhet",
  "_searchresults": 2,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/FactorHet.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "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-05-14T09:15:26.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "9701115fc1bdb527846256a2773a4bbd483e620c96ed4fc7454a4098061a041d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-14T09:15:37.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "120fe8e064c76a3ece7db679d5b59135dc14ac0e6ce0acdf5e7c9cf0af3c122f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-14T09:15:25.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "4cea6b5c9b1e33978589c022d52c124aeb065800a5d390d228ea8b96960d63c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-14T09:15:30.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "9ec8b1eacfa9943b2e204fb66b6a18cddeffe31c72ceeefbb004cf54c2e1f7b8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-14T09:15:01.000Z",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "e3c2c26ca03e6043aee114c5b951fc7314fe54ca6e0c62a07fc58ff7deb8c63d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-14T09:15:47.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "62e34126e66f14036fa0ca72e23971dc67b15324aa545b053d1b97535c64bde6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-14T09:15:11.000Z",
      "arch": "aarch64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "ae56c6dadfc6343c3fc454cb09fa2264167ceb95b13b87f0bcdbe35d109e9261",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-14T09:16:10.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "3d8aa690df33aabd052a4736e38e363310615f9a8c01fcb1e9ba984e7d4c0207",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-14T09:14:38.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "6522ed44b72684c21a9daa8445e65d7eef29c7dacee5e5a4409bb24f296849ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-14T09:14:31.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "3202f7f2b1c0d16eb56e40206a8d5e0b07aa35d5c8184fcf6b1ebe031007848a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-14T09:14:30.000Z",
      "arch": "x86_64",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "5f2ee90123b3271c99eb0f0fb8b7730353fc9ef38ac3bbbffa836bea3d109bf4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-05-22T08:59:58.000Z",
      "arch": "emscripten",
      "commit": "eaa6e84cb05064c7d86c9d73b16b23ae090bb4e9",
      "fileid": "15e8f75cd44a6dbbe1d00092fe969f17f02c27ba82e127f6f1c93a8b4bc29b4b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mgoplerud/actions/runs/25851802191"
    }
  ]
}