{
  "_id": "6a1970d0acfb0bcc41ded65e",
  "Package": "interflex",
  "Type": "Package",
  "Version": "1.4.0",
  "Title": "Estimation, Diagnostics and Visualization of Conditional\nMarginal Effects",
  "Date": "2026-04-05",
  "Authors@R": "c(person(\"Jens Hainmueller\", role=c(\"aut\")),\nperson(\"Jonathan Mummolo\", role=c(\"aut\")),\nperson(\"Tianzhu Qin\", role=c(\"aut\")),\nperson(\"Jiehan Liu\", role=c(\"aut\")),\nperson(\"Ziyi Liu\", role=c(\"aut\")),\nperson(\"Yiqing Xu\", role=c(\"aut\",\"cre\"), email = \"yiqingxu@stanford.edu\"))",
  "Description": "Performs estimation, diagnostics, and visualization of\nconditional marginal effects and group average treatment\neffects of a treatment on an outcome across different values of\na moderator. Optionally integrates with the 'mlr3extralearners'\npackage for additional machine learning backends.\n'mlr3extralearners' is not on CRAN but can be obtained from\n<https://github.com/mlr-org/mlr3extralearners>.",
  "URL": "https://yiqingxu.org/packages/interflex/,\nhttps://github.com/xuyiqing/interflex",
  "License": "MIT + file LICENSE",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "Maintainer": "Yiqing Xu <yiqingxu@stanford.edu>",
  "Packaged": {
    "Date": "2026-05-29 09:11:58 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://xuyiqing.r-universe.dev",
  "Date/Publication": "2026-04-29 01:05:08 UTC",
  "RemoteUrl": "https://github.com/xuyiqing/interflex",
  "RemoteRef": "HEAD",
  "RemoteSha": "703c43e50fb7e280ad39472964790b20ab78ff6a",
  "Author": "Jens Hainmueller [aut],\nJonathan Mummolo [aut],\nTianzhu Qin [aut],\nJiehan Liu [aut],\nZiyi Liu [aut],\nYiqing Xu [aut, cre]",
  "MD5sum": "b3da7566f73926104160f49dbc2ea071",
  "_user": "xuyiqing",
  "_type": "src",
  "_file": "interflex_1.4.0.tar.gz",
  "_fileid": "cc22f121eb5da7c1098222f8dd5bb3007b6328a182633b06ec707780b99f603d",
  "_filesize": 472574,
  "_sha256": "cc22f121eb5da7c1098222f8dd5bb3007b6328a182633b06ec707780b99f603d",
  "_created": "2026-05-29T09:11:58.000Z",
  "_published": "2026-05-29T10:56:16.690Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78472106280,
      "time": 248,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287290357"
    },
    {
      "job": 78472106181,
      "time": 255,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287292690"
    },
    {
      "job": 78472106235,
      "time": 134,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7289038978"
    },
    {
      "job": 78472106200,
      "time": 158,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7289039389"
    },
    {
      "job": 78471467300,
      "time": 255,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287214357"
    },
    {
      "job": 78472106316,
      "time": 136,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287255724"
    },
    {
      "job": 78472106272,
      "time": 248,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287289967"
    },
    {
      "job": 78472106282,
      "time": 215,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7287279999"
    },
    {
      "job": 78472106324,
      "time": 202,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287275968"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/xuyiqing/interflex",
  "_commit": {
    "id": "703c43e50fb7e280ad39472964790b20ab78ff6a",
    "author": "Jens Hainmueller <jhain@stanford.edu>",
    "committer": "Jens Hainmueller <jhain@stanford.edu>",
    "message": "Add inst/CITATION for citation(\"interflex\")\n\nWithout this file, citation(\"interflex\") returns CRAN's\nauto-generated generic entry that points only at the package\nmanual. The new CITATION emits two entries:\n\n* The methodological reference: Hainmueller, Mummolo, & Xu (2019),\n  Political Analysis 27(2), 'How Much Should We Trust Estimates\n  from Multiplicative Interaction Models?' — preferred for\n  substantive citation.\n* The R package itself, with the current version pulled from\n  DESCRIPTION at runtime via meta$Version.\n\nAuthor list on the package entry matches DESCRIPTION's Authors@R\nexactly. Verified locally that source('inst/CITATION') with a\nmocked meta object produces clean output.\n",
    "time": 1777424708
  },
  "_maintainer": {
    "name": "Yiqing Xu",
    "email": "yiqingxu@stanford.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 2.1.0",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "version": ">= 2.3-4",
      "role": "Imports"
    },
    {
      "package": "Lmoments",
      "version": ">= 1.2-3",
      "role": "Imports"
    },
    {
      "package": "doFuture",
      "role": "Imports"
    },
    {
      "package": "doRNG",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "version": ">= 1.4.3",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "version": ">= 1.8-16",
      "role": "Imports"
    },
    {
      "package": "lfe",
      "version": ">= 2.6-2291",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "ggplotify",
      "role": "Imports"
    },
    {
      "package": "fixest",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "pcse",
      "role": "Imports"
    },
    {
      "package": "gtable",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "ModelMetrics",
      "role": "Imports"
    },
    {
      "package": "lmtest",
      "role": "Imports"
    },
    {
      "package": "AER",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "grf",
      "role": "Imports"
    },
    {
      "package": "DoubleML",
      "role": "Imports"
    },
    {
      "package": "mlr3",
      "role": "Imports"
    },
    {
      "package": "mlr3learners",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "paradox",
      "role": "Imports"
    },
    {
      "package": "parallelly",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "mlr3tuning",
      "role": "Suggests"
    },
    {
      "package": "nnet",
      "role": "Suggests"
    },
    {
      "package": "mlr3extralearners",
      "role": "Suggests"
    },
    {
      "package": "lightgbm",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "xuyiqing",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-18",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 40,
  "_contributors": [
    {
      "user": "lzy318",
      "count": 115,
      "uuid": 50941087
    },
    {
      "user": "tianzhuqin",
      "count": 75,
      "uuid": 43746568
    },
    {
      "user": "xuyiqing",
      "count": 64,
      "uuid": 7664920
    },
    {
      "user": "claude",
      "count": 23,
      "uuid": 81847
    },
    {
      "user": "jiehanl",
      "count": 9,
      "uuid": 65253017
    },
    {
      "user": "j-hai",
      "count": 1,
      "uuid": 115841204
    },
    {
      "user": "leeper",
      "count": 1,
      "uuid": 3505428
    }
  ],
  "_userbio": {
    "uuid": 7664920,
    "type": "user",
    "name": "Yiqing Xu",
    "description": "Assistant Professor at Stanford PoliSci"
  },
  "_downloads": {
    "count": 1201,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/interflex"
  },
  "_devurl": "https://github.com/xuyiqing/interflex",
  "_searchresults": 64,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/interflex.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/xuyiqing/interflex",
  "_realowner": "xuyiqing",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2017-02-26"
    },
    {
      "version": "1.0.3",
      "date": "2017-03-05"
    },
    {
      "version": "1.0.4",
      "date": "2018-04-20"
    },
    {
      "version": "1.0.8",
      "date": "2019-06-20"
    },
    {
      "version": "1.1.3",
      "date": "2020-04-23"
    },
    {
      "version": "1.2.5",
      "date": "2021-05-06"
    },
    {
      "version": "1.2.6",
      "date": "2021-05-18"
    },
    {
      "version": "1.2.8",
      "date": "2025-12-17"
    },
    {
      "version": "1.4.0",
      "date": "2026-04-10"
    }
  ],
  "_exports": [
    "inter.test",
    "interflex"
  ],
  "_datasets": [
    {
      "name": "app_adiguzel2023",
      "title": "Replication Datasets from Published Interaction-Effect Studies",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "school_id_cluster",
        "Dakp_3",
        "Dwalk_3",
        "lograyic09",
        "Duniversity_3",
        "Dodr_3",
        "Dydr_3",
        "Dpopulation_3",
        "Dhospital_pri_3",
        "Dhospital_pub_3"
      ],
      "rows": 1295,
      "table": true,
      "tojson": true
    },
    {
      "name": "app_bb2024",
      "title": "Replication Datasets from Published Interaction-Effect Studies",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "country",
        "income",
        "leftright",
        "clim_belief",
        "resp_age",
        "female",
        "employment_f",
        "highedu",
        "midedu",
        "pid_f",
        "sup_tax",
        "sup_tax_rebate",
        "ID",
        "treat_rev",
        "treat_type",
        "treatment",
        "d_sup_tax_rebate",
        "treat_rev_bin",
        "t1_bin",
        "t2_bin",
        "t3_bin",
        "treat_type_bin"
      ],
      "rows": 810,
      "table": true,
      "tojson": true
    },
    {
      "name": "app_et2023",
      "title": "Replication Datasets from Published Interaction-Effect Studies",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "name",
        "id",
        "seats_t_ind",
        "seat_next_5yr",
        "board_service",
        "last_year",
        "seats_t1_ind",
        "seats_t3_ind",
        "seats_t5_ind",
        "abs_nom",
        "dw_nom",
        "les",
        "n_bills",
        "chair",
        "sub_chair",
        "av_hhi",
        "seniority",
        "power2",
        "av_connect",
        "av_fund",
        "state_leg",
        "state_leg_prof",
        "lost",
        "chamber",
        "party_txt",
        "majority",
        "female",
        "african_american",
        "latinx",
        "hloga",
        "sen",
        "did",
        "vote_share",
        "dem",
        "state_po",
        "cong",
        "cat_nom",
        "f_hloga",
        "f_did"
      ],
      "rows": 570,
      "table": true,
      "tojson": true
    },
    {
      "name": "app_hma2015",
      "title": "Replication Datasets from Published Interaction-Effect Studies",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "totangry",
        "threat",
        "pidentity",
        "issuestr2",
        "pidstr2",
        "pidstr2_threat",
        "issuestr2_threat",
        "knowledge",
        "educ",
        "male",
        "age10"
      ],
      "rows": 1482,
      "table": true,
      "tojson": true
    },
    {
      "name": "app_vernby2013",
      "title": "Replication Datasets from Published Interaction-Effect Studies",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "school_diff",
        "noncitvotsh",
        "noncit15",
        "Taxbase2",
        "Taxbase2_2",
        "pop",
        "pop_2",
        "manu",
        "manu_2"
      ],
      "rows": 183,
      "table": true,
      "tojson": true
    },
    {
      "name": "s1",
      "title": "s1",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y",
        "D",
        "X",
        "Z1"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "s2",
      "title": "s2",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y",
        "D",
        "X",
        "Z1"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "s3",
      "title": "s3",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "D",
        "X",
        "Y",
        "Z1"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "s4",
      "title": "s4",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "D",
        "X",
        "Y",
        "Z1",
        "unit",
        "year"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    },
    {
      "name": "s5",
      "title": "s5",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "D",
        "X",
        "Y",
        "Z1",
        "Z2"
      ],
      "rows": 600,
      "table": true,
      "tojson": true
    },
    {
      "name": "s6",
      "title": "s6",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "D",
        "Z1",
        "Z2",
        "Y"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    },
    {
      "name": "s7",
      "title": "s7",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "D",
        "Z1",
        "Z2",
        "Y"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    },
    {
      "name": "s8",
      "title": "s8",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "D",
        "Z1",
        "Z2",
        "Y"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    },
    {
      "name": "s9",
      "title": "s9",
      "object": "interflex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "D",
        "Z1",
        "Z2",
        "Y"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "app-data",
      "title": "Replication Datasets from Published Interaction-Effect Studies",
      "topics": [
        "app-data",
        "app_adiguzel2023",
        "app_bb2024",
        "app_et2023",
        "app_hma2015",
        "app_vernby2013"
      ]
    },
    {
      "page": "inter_test",
      "title": "Conduct t-Test after Estimation",
      "topics": [
        "inter.test"
      ]
    },
    {
      "page": "interflex",
      "title": "Flexible Interactive Models",
      "topics": [
        "interflex"
      ]
    },
    {
      "page": "plot.interflex",
      "title": "Plotting Marginal Effect Estimates",
      "topics": [
        "plot.interflex"
      ]
    },
    {
      "page": "predict.interflex",
      "title": "Plotting Marginal Effect Estimates",
      "topics": [
        "predict.interflex"
      ]
    }
  ],
  "_readme": "https://github.com/xuyiqing/interflex/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "AER",
    "backports",
    "bbotk",
    "boot",
    "broom",
    "car",
    "carData",
    "checkmate",
    "cli",
    "clusterGeneration",
    "codetools",
    "colorspace",
    "cowplot",
    "cpp11",
    "data.table",
    "Deriv",
    "DiceKriging",
    "digest",
    "doBy",
    "doFuture",
    "doRNG",
    "DoubleML",
    "dplyr",
    "dreamerr",
    "evaluate",
    "farver",
    "fixest",
    "foreach",
    "forecast",
    "Formula",
    "fracdiff",
    "fs",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "ggplotify",
    "glmnet",
    "globals",
    "glue",
    "grf",
    "gridExtra",
    "gridGraphics",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lfe",
    "lgr",
    "lifecycle",
    "listenv",
    "lme4",
    "Lmoments",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "mirai",
    "mlbench",
    "mlr3",
    "mlr3learners",
    "mlr3measures",
    "mlr3misc",
    "mlr3tuning",
    "ModelMetrics",
    "modelr",
    "mvtnorm",
    "nanonext",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "palmerpenguins",
    "paradox",
    "parallelly",
    "pbkrtest",
    "pcse",
    "pillar",
    "pkgconfig",
    "pROC",
    "progressr",
    "PRROC",
    "purrr",
    "quantreg",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "readstata13",
    "reformulas",
    "rlang",
    "rngtools",
    "S7",
    "sandwich",
    "scales",
    "shape",
    "SparseM",
    "stringi",
    "stringmagic",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr",
    "xtable",
    "yulab.utils",
    "zoo"
  ],
  "_score": 6.265934223098399,
  "_indexed": true,
  "_nocasepkg": "interflex",
  "_universes": [
    "xuyiqing"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-05-29T09:14:54.000Z",
      "distro": "noble",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "7cb99535f30aa9367b17091dec981115d69853a7f30b49708b3dec62e2b33a06",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-05-29T09:14:59.000Z",
      "distro": "noble",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "60257903769862bc730a20406ac15fae4652ffb0d8419deb0c52f7d4b41fff41",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-05-29T10:54:53.000Z",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "f04bb46a1e03d1d0c68e116d048545c3e57f139fb67b19d5c0d078626cb53c4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-05-29T10:54:41.000Z",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "1d8e25d9606fc853ebc0120a0ae057d53b89742179c2b3ec7e8d585c1341f821",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.0",
      "date": "2026-05-29T09:14:51.000Z",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "228697a4b32dfee18e17c13a542311cd2fe30e2d5295c3041f0ee3b04224170b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-29T09:14:17.000Z",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "f33ec5dc38543f8a5ed1102a36286d14a33e8eadf45c8047257e14608fbdf9d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-29T09:13:52.000Z",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "cb3973380478b11edfbee6ad29e7c3bdc27492f43e04bc0692c83be356b3ea0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-29T09:13:51.000Z",
      "commit": "703c43e50fb7e280ad39472964790b20ab78ff6a",
      "fileid": "02542681b5589f518eb0f16cc5a09af785bed97cf384c3c037f5cc92ddac3321",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26628593131"
    }
  ]
}