Package: mdiharmonize
Type: Package
Title: Harmonize Confidential Firm-Level Microdata into a Common Format
Version: 0.1.0
License: GPL-3
URL: https://github.com/Secretariat-CompNet/mdiharmonize
BugReports: https://github.com/Secretariat-CompNet/mdiharmonize/issues
Authors@R: c(
    person("Daniele", "Aglio", role = "aut"),
    person("Eric", "Bartelsman", role = "aut"),
    person("Julián", "Díaz-Acosta", role = "aut"),
    person("Mirja", "Hälbig", role = "aut"),
    person("Marco", "Miorandi", role = "aut"),
    person("Johanna", "Weiss", role = c("aut", "cre"), email = "johanna.weiss@iwhesl.onmicrosoft.com"),
    person("José Alberto", "Ferreira", role = "ctb"),
    person("Elena", "Sponga", role = "ctb"),
    person("Reetuparna", "Vishwanath", role = "ctb"),
    person("Chengzi", "Yi", role = "ctb"),
    person("Alessandro", "Zona Mattioli", role = "ctb"),
    person("European Union", role = "fnd",
           comment = "Technical Support Instrument (TSI), project ProdTool, TSI-2025-MULTIMSPROD-IBA, TSI Project Number 101261159")
  )
Description: Harmonizes confidential firm-level microdata held at national
    statistical institutes into one common structure, so that the same
    analysis code runs unchanged in every country. Metadata tables describe
    each institute's raw files and map their variables to the common ones;
    the functions read the raw files, apply the mapping (revaluing,
    recoding, reclassifying, redefining and remapping), make industry,
    product and regional classifications consistent over time, switch
    between enterprise, firm and plant identifiers, and add capital stocks
    computed with the perpetual inventory method. Quality checks on the
    harmonized data report duplicate keys, type conversion losses, breaks in
    yearly statistics and jumps in missing values, and outputs pass
    statistical disclosure control before they leave the institute. Builds
    on the analysis tools in 'mditools'. Capital stocks via the perpetual
    inventory method follow OECD (2009) <doi:10.1787/9789264068476-en>;
    disclosure control applies the minimum-frequency and dominance rules
    with secondary suppression described in Hundepool et al. (2012)
    <doi:10.1002/9781118348239>.
Encoding: UTF-8
Imports: data.table, dplyr, grDevices, haven, igraph, mditools (>=
        0.1.1), openxlsx, stats, stringr, tools, utils
Suggests: askpass, bit64, ggplot2, gridExtra, readr, RODBC, testthat
        (>= 3.0.0)
Config/testthat/edition: 3
Config/roxygen2/version: 8.1.0
NeedsCompilation: no
Packaged: 2026-10-22 13:13:01 UTC; johanna
Author: Daniele Aglio [aut],
  Eric Bartelsman [aut],
  Julián Díaz-Acosta [aut],
  Mirja Hälbig [aut],
  Marco Miorandi [aut],
  Johanna Weiss [aut, cre],
  José Alberto Ferreira [ctb],
  Elena Sponga [ctb],
  Reetuparna Vishwanath [ctb],
  Chengzi Yi [ctb],
  Alessandro Zona Mattioli [ctb],
  European Union [fnd] (Technical Support Instrument (TSI), project
    ProdTool, TSI-2025-MULTIMSPROD-IBA, TSI Project Number 101261159)
Maintainer: Johanna Weiss <johanna.weiss@iwhesl.onmicrosoft.com>
Repository: CRAN
Date/Publication: 2026-11-04 20:30:02 UTC
