{
  "_id": "6a228d14cd65a98ecbd54de7",
  "Package": "ddecompose",
  "Type": "Package",
  "Title": "Detailed Distributional Decomposition",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"David\", \"Gallusser\", email = \"david.gallusser@sgb.ch\", role = c(\"aut\")),\nperson(\"Samuel\", \"Meier\", email = \"samuel.meier+ddecompose@immerda.ch\", role = c(\"aut\", \"cre\")))",
  "Maintainer": "Samuel Meier <samuel.meier+ddecompose@immerda.ch>",
  "Description": "Implements the Oaxaca-Blinder decomposition method and\ngeneralizations of it that decompose differences in\ndistributional statistics beyond the mean. The function\nob_decompose() decomposes differences in the mean outcome\nbetween two groups into one part explained by different\ncovariates (composition effect) and into another part due to\ndifferences in the way covariates are linked to the outcome\nvariable (structure effect). The function further divides the\ntwo effects into the contribution of each covariate and allows\nfor weighted doubly robust decompositions. For distributional\nstatistics beyond the mean, the function performs the\nrecentered influence function (RIF) decomposition proposed by\nFirpo, Fortin, and Lemieux (2018). The function dfl_decompose()\ndivides differences in distributional statistics into an\ncomposition effect and a structure effect using inverse\nprobability weighting as introduced by DiNardo, Fortin, and\nLemieux (1996). The function also allows to sequentially\ndecompose the composition effect into the contribution of\nsingle covariates. References: Firpo, Sergio, Nicole M. Fortin,\nand Thomas Lemieux. (2018) <doi:10.3390/econometrics6020028>.\n\"Decomposing Wage Distributions Using Recentered Influence\nFunction Regressions.\" Fortin, Nicole M., Thomas Lemieux, and\nSergio Firpo. (2011) <doi:10.3386/w16045>. \"Decomposition\nMethods in Economics.\" DiNardo, John, Nicole M. Fortin, and\nThomas Lemieux. (1996) <doi:10.2307/2171954>. \"Labor Market\nInstitutions and the Distribution of Wages, 1973-1992: A\nSemiparametric Approach.\" Oaxaca, Ronald. (1973)\n<doi:10.2307/2525981>. \"Male-Female Wage Differentials in Urban\nLabor Markets.\" Blinder, Alan S. (1973) <doi:10.2307/144855>.\n\"Wage Discrimination: Reduced Form and Structural Estimates.\"",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.1",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-05 08:42:33 UTC",
    "User": "root"
  },
  "Author": "David Gallusser [aut], Samuel Meier [aut, cre]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-05-08 02:27:58 UTC",
  "RemoteUrl": "https://github.com/cran/ddecompose",
  "RemoteRef": "HEAD",
  "RemoteSha": "309b85aa8a3738a674d7129632d4f417c0903aba",
  "MD5sum": "6b87fcd018d61118ce2eb08941449fe4",
  "_user": "cran",
  "_type": "src",
  "_file": "ddecompose_1.0.0.tar.gz",
  "_fileid": "c41150cc1d35a885931ce814b04f7f2c4adbdd62aac502d8dc1bf1e5b660cb5b",
  "_filesize": 1446351,
  "_sha256": "c41150cc1d35a885931ce814b04f7f2c4adbdd62aac502d8dc1bf1e5b660cb5b",
  "_created": "2026-06-05T08:42:33.000Z",
  "_published": "2026-06-05T08:47:16.829Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79694155999,
      "time": 245,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7432529786"
    },
    {
      "job": 79694156012,
      "time": 238,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7432527843"
    },
    {
      "job": 79693715250,
      "time": 179,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7432451786"
    },
    {
      "job": 79694155976,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7432498798"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27004802410",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/ddecompose",
  "_commit": {
    "id": "309b85aa8a3738a674d7129632d4f417c0903aba",
    "author": "Samuel Meier <samuel.meier+ddecompose@immerda.ch>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1715135278
  },
  "_maintainer": {
    "name": "Samuel Meier",
    "email": "samuel.meier+ddecompose@immerda.ch"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "rifreg",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "Hmisc",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "pbapply",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "ranger",
      "role": "Imports"
    },
    {
      "package": "fastglm",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 181,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ddecompose"
  },
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ddecompose.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-05-07"
    }
  ],
  "_exports": [
    "dfl_decompose",
    "estimate_iq_range",
    "estimate_iq_ratio",
    "GU_normalization",
    "ob_decompose"
  ],
  "_datasets": [
    {
      "name": "men8305",
      "title": "Sample of male wage data from the CPS 1983-1985 and 2003-2005",
      "object": "men8305",
      "class": [
        "data.frame"
      ],
      "fields": [
        "wage",
        "union",
        "education",
        "experience",
        "married",
        "nonwhite",
        "year",
        "weights"
      ],
      "rows": 40347,
      "table": true,
      "tojson": true
    },
    {
      "name": "nlys00",
      "title": "Sample of NLSY79 wage data from 2000",
      "object": "nlys00",
      "class": [
        "data.frame"
      ],
      "fields": [
        "female",
        "wage",
        "age",
        "central_city",
        "msa",
        "region",
        "black",
        "hispanic",
        "education",
        "afqt",
        "family_responsibility",
        "years_worked_civilian",
        "years_worked_military",
        "part_time",
        "industry"
      ],
      "rows": 5309,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "aggregate_terms",
      "title": "Aggregate decomposition terms",
      "topics": [
        "aggregate_terms"
      ]
    },
    {
      "page": "bootstrap_estimate_ob_decompose",
      "title": "Bootstrapping the OB decomposition",
      "topics": [
        "bootstrap_estimate_ob_decompose"
      ]
    },
    {
      "page": "dfl_decompose",
      "title": "DFL reweighting decomposition",
      "topics": [
        "dfl_decompose"
      ]
    },
    {
      "page": "dfl_decompose_bootstrap",
      "title": "Bootstrapping the DFL reweighting decomposition",
      "topics": [
        "dfl_decompose_bootstrap"
      ]
    },
    {
      "page": "dfl_decompose_estimate",
      "title": "Estimate the DFL reweighting decomposition",
      "topics": [
        "dfl_decompose_estimate"
      ]
    },
    {
      "page": "estimate_iq_range",
      "title": "Interquantile range",
      "topics": [
        "estimate_iq_range"
      ]
    },
    {
      "page": "estimate_iq_ratio",
      "title": "Interquantile ratio",
      "topics": [
        "estimate_iq_ratio"
      ]
    },
    {
      "page": "estimate_ob_decompose",
      "title": "Estimate OB decomposition",
      "topics": [
        "estimate_ob_decompose"
      ]
    },
    {
      "page": "fit_and_predict_probabilities",
      "title": "Predict conditional probabilities",
      "topics": [
        "fit_and_predict_probabilities"
      ]
    },
    {
      "page": "get_distributional_statistics",
      "title": "Estimate distributional statistics",
      "topics": [
        "get_distributional_statistics"
      ]
    },
    {
      "page": "get_normalized_difference",
      "title": "Get normalized differences",
      "topics": [
        "get_normalized_difference"
      ]
    },
    {
      "page": "GU_normalization",
      "title": "Gardeazabal and Ugidos normalization of factor variables",
      "topics": [
        "GU_normalization"
      ]
    },
    {
      "page": "GU_normalization_get_coefficients",
      "title": "Get coefficients for GU normalization",
      "topics": [
        "GU_normalization_get_coefficients"
      ]
    },
    {
      "page": "GU_normalization_get_vcov",
      "title": "Get covariance matrix for GU normalization",
      "topics": [
        "GU_normalization_get_vcov"
      ]
    },
    {
      "page": "GU_normalization_sum_coefficients",
      "title": "Sum coefficients for GU normalization",
      "topics": [
        "GU_normalization_sum_coefficients"
      ]
    },
    {
      "page": "GU_normalization_sum_vcov",
      "title": "Sum covariance matrix for GU normalization",
      "topics": [
        "GU_normalization_sum_vcov"
      ]
    },
    {
      "page": "men8305",
      "title": "Sample of male wage data from the CPS 1983-1985 and 2003-2005",
      "topics": [
        "men8305"
      ]
    },
    {
      "page": "nlys00",
      "title": "Sample of NLSY79 wage data from 2000",
      "topics": [
        "nlys00"
      ]
    },
    {
      "page": "ob_decompose",
      "title": "Oaxaca-Blinder decomposition",
      "topics": [
        "ob_decompose"
      ]
    },
    {
      "page": "ob_decompose_calculate_terms",
      "title": "Calculate OB decomposition terms",
      "topics": [
        "ob_decompose_calculate_terms"
      ]
    },
    {
      "page": "ob_decompose_calculate_vcov",
      "title": "Calculate covariance matrix for OB decomposition terms",
      "topics": [
        "ob_decompose_calculate_vcov"
      ]
    },
    {
      "page": "plot.dfl_decompose",
      "title": "Plot decomposition terms for quantiles",
      "topics": [
        "plot.dfl_decompose"
      ]
    },
    {
      "page": "plot.ob_decompose",
      "title": "Plot decomposition terms for quantiles",
      "topics": [
        "plot.ob_decompose"
      ]
    },
    {
      "page": "print.dfl_decompose",
      "title": "print method for class \"dfl_decompose\"",
      "topics": [
        "print.dfl_decompose"
      ]
    },
    {
      "page": "print.ob_decompose",
      "title": "print method for class \"ob_decompose\"",
      "topics": [
        "print.ob_decompose"
      ]
    },
    {
      "page": "select_observations_to_be_trimmed",
      "title": "Select observations with little common support to be trimmed",
      "topics": [
        "select_observations_to_be_trimmed"
      ]
    },
    {
      "page": "summary.dfl_decompose",
      "title": "summary method for class \"dfl_decompose\"",
      "topics": [
        "summary.dfl_decompose"
      ]
    },
    {
      "page": "summary.ob_decompose",
      "title": "summary method for class \"ob_decompose\"",
      "topics": [
        "summary.ob_decompose"
      ]
    }
  ],
  "_readme": "https://github.com/cran/ddecompose/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "base64enc",
    "BH",
    "bigmemory",
    "bigmemory.sri",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "colorspace",
    "cpp11",
    "data.table",
    "digest",
    "evaluate",
    "farver",
    "fastglm",
    "fastmap",
    "fontawesome",
    "foreign",
    "Formula",
    "fs",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "memoise",
    "mime",
    "nnet",
    "pbapply",
    "R6",
    "ranger",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rifreg",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sandwich",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "tinytex",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml",
    "zoo"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "ddecompose",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-05T08:45:07.000Z",
      "distro": "noble",
      "commit": "309b85aa8a3738a674d7129632d4f417c0903aba",
      "fileid": "5cae296aba5e75e1cb14899ae5550efbbe26610ded1e306a381eb553394a0503",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27004802410"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-05T08:45:05.000Z",
      "distro": "noble",
      "commit": "309b85aa8a3738a674d7129632d4f417c0903aba",
      "fileid": "a2e5e257c478153cbfba5bbb200cdf5c0146507456a3fa216270ab3c997b3a7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27004802410"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-05T08:45:22.000Z",
      "commit": "309b85aa8a3738a674d7129632d4f417c0903aba",
      "fileid": "332d0f38acb6ec47136bf2b1936b29b5271ae74026adb55c48c0f317a2f8472f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27004802410"
    }
  ]
}