Skip to content

Documenting Administrative Microdata Using DDI-Codebook ​

Purpose ​

Administrative data consist of records collected and maintained by government agencies and other organizations as part of routine operations. When processed at the level of individuals, households, businesses, facilities, transactions, or events, these records constitute administrative microdata.

The goal of documentation is to enable users to:

  • Understand the purpose and operational context of the data.
  • Identify the populations, units, geographic areas, and periods represented.
  • Understand source programs, systems, and data-capture processes.
  • Interpret variables consistently and correctly.
  • Assess data fitness for use.
  • Understand quality limitations and processing history.
  • Support discovery, preservation, interoperability, and reuse.
DDI ElementPurposeExample
abstract; purposeDescribe administrative program, provenance, and analytical context.National cash transfer records prepared for research use.
producer; AuthEnty; dataColl/sourcesIdentify originating organizations and systems.Ministry of Social Protection; National Cash Transfer MIS.
universe; anlyUnit; timePrd; geogCoverDefine coverage.Registered beneficiary households nationwide, 2020–2024.
sampProc; universe; notesDocument cohort selection rules.Beneficiaries with at least one payment.
fileDscr elementsDescribe data files.One record per beneficiary.
var elementsDescribe variables.benefit_status: 0=No, 1=Yes.
location; varFormatDocument physical structure.Position 21, width 8.
method; dataColl; notesDescribe quality and processing.Linked using beneficiary ID.
setAvail; restrctnDescribe access conditions.Licensed access.
otherMat; relMatDocument supporting resources.Program manuals and scripts.
verStmt; versionDocument versioning and lineage.Version 2.0.

1. Study Description ​

Relevant DDI Area: stdyDscr

The Study Description provides the context needed to understand why the records were created, how the documented data product was produced, and how it may be used.

DDI ElementPurposeExample
titlStmt/titlRecords the official title of the dataset or study.National Social Assistance Beneficiaries Database, 2024
IDNoUnique identifier.TZA_2024_MSP-NSAB_v01_M
abstractSummarize the content, coverage, and context of the data product.Administrative records documenting beneficiaries of the national cash transfer program.
purposeExplain why the records were originally collected and why the documented dataset was created.To administer social assistance payments and support program monitoring.
dataKindType of data.Administrative records
producerIdentify the organization responsible for producing or maintaining the dataset.Ministry of Social Protection
versionDocument the version number and associated release information.Version 1.0 (August 2026)
citationSpecify the recommended citation for users.Official citation statement e.g. Ministry of Social Protection. National Social Assistance Beneficiaries Database 2024.
keyword; topcClasProvide keywords or topics to support discovery.Social protection; poverty
nationDocument the geographic representation.Tanzania

2. Administrative Data Source Description ​

Relevant DDI Areas: sumDscr, dataColl, citation/prodStmt

Create a separate source description for every administrative system contributing data.

DDI ElementPurposeExample
AuthEntyIdentify the organization responsible for collecting or maintaining the source records.Ministry of Social Protection
dataColl/sourcesIdentify the originating program, register, information system, claims database, or operational source.National Cash Transfer Management Information System (MIS)
collModeDescribe how data enter the system.Caseworker entry through a web-based management system
softwareDocument the system or platform used.Social Protection MIS v4.2
timeMethDocument the recording method.Continuous transaction recording
frequencDescribe how often information is updated.Monthly
contactIdentify the organization responsible for maintaining the source system.Information Systems Unit
notesDocument any source-specific limitations.Historical paper records migrated

System Name vs Software

Use the source description to document the administrative program or information system. Use software to identify the application or platform when relevant.


3. Coverage and Population Metadata ​

Relevant DDI Elements: universe, anlyUnit, timePrd, geogCover, dataKind

DDI ElementPurposeExample
universeDefine the population represented in the data.Households receiving benefits, 2020–2024
anlyUnitDefine the primary unit represented by each record.Household
timePrdSpecify the reference period represented by the data.January 2020–December 2024
geogCoverDescribe geographic areas included or excluded.National coverage
notesDocument any coverage changes and extraction dates.Expanded district coverage in 2021

4. Cohort Definition and Selection Rules ​

Relevant DDI Elements: universe, sampProc, notes note: some elements are already included in the table above but included to emphasize the content in relation to the section

DDI ElementPurposeExample
sampProcDescribe selection criteria or operational rules used to create the cohort.Selected beneficiaries with at least one payment transaction during the reference period
weight (If applicable. See 'Weights in Administrative Data')Describe any weight variables or adjustment factors included in the dataset. State explicitly when weights are not required because the file represents a complete administrative universe.The dataset contains all beneficiaries registered in the program during the reference period; no sampling weights were applied.
notesDocument inclusion/exclusion criteria, administrative codes, and cohort assignment logic.Records with inactive status codes were excluded from the analytical cohort

Weights in Administrative Data

Administrative datasets often represent a complete administrative universe rather than a sample. Examples include:

  • All registered beneficiaries in a program.
  • All tax returns filed during a specified period.
  • All hospital admissions recorded in an administrative system.
  • All registered businesses included in a business registry.

In these situations, there is typically no sampling weight variable, because all units in the target population are represented in the dataset. As a result, administrative data documentation generally places greater emphasis on coverage, cohort definition, record linkage, and data quality than on sample design and weighting.

However, weights may be required in certain circumstances:

  • A sample is drawn from the administrative system

    • Example: a 10% sample of tax records is selected for analysis.
    • In such cases, sampling weights may be required to support population-level inference.
  • Administrative and survey data are combined

    • Example: survey respondents are linked to social protection records.
    • Survey weights are often retained and used in subsequent analyses.
  • Administrative records are adjusted to represent a broader population

    • Example: calibration factors or adjustment weights are applied to compensate for known undercoverage or reporting gaps.
  • The administrative source is incomplete

    • Researchers may construct analytical weights to account for selection bias, incomplete reporting, or differential coverage across population groups.

When weights are present, documentation should clearly describe:

  • Why the weights were created.
  • The population represented by the weights.
  • The methodology used to calculate the weights.
  • Any assumptions, limitations, or adjustment procedures applied.

When no weights are used, it is helpful to state this explicitly, for example:

Weighting: Not applicable. The dataset represents the full administrative population recorded in the source system during the reference period.

5. File Description ​

Relevant DDI Area: fileDscr

DDI ElementPurposeExample
fileNameRecord the file name and identifier.beneficiary_demographics_2024.csv
fileTypeIdentify the file format.CSV
fileContSummarize the contents of the file.Demographic information on registered beneficiaries
fileKeyIdentify key variables and record identifiers.beneficiary_id
caseQntyRecord the number of observations or records.58,742
varQntyRecord the number of variables.45
notesDocument the record structure.One record per beneficiary
notesDocument related files and linkage relationships.Linked to payment_history.csv via beneficiary_id
notesDocument file-specific notes and caveats including missing-value conventions,Contains only active beneficiaries. -9 = Not reported
versionDocument the records version information.Version 1.0
fileDerivationDocument transformations or processes used to create the file.Derived by extracting active records from the operational database and removing duplicate entries
notesDocument any file-specific guidance.UTF-8 encoded

6. Variable Description ​

Relevant DDI Area: dataDscr

DDI ElementPurposeExample
@IDUnique identifier for the variable metadata.V15
@nameDocument the variable name in the data file.benefit_status
lablProvide the human-readable variable label.Benefit receipt status
conceptDocument the concept measured by the variable.Program participation
qstn or sourcesDescribe the originating question or administrative field.Current benefit status recorded by the beneficiary management system
universeIndicate which records are eligible for the variableRegistered beneficiaries
varFormatSpecify the data type and format.Numeric
catgryDocument coded values and categories.0 = No, 1 = Yes
invalrngDefine missing, invalid, or suppressed values.-9 = Not reported
locationSpecify physical position in fixed-width files.Position 21, width 8
sumStatProvide summary statistics where appropriate.Mean age = 42.6 years
notesDocument special considerations and interpretation guidance.Definition changed in 2023 following policy reform
derivationDocument any variable construction rules.Derived from payment records
security or notesDocyment variable restrictions.Restricted geography variable

7. Physical Data Structure ​

Relevant DDI Elements: location, varFormat

DDI ElementPurposeExample
var/@nameVariable identifier.beneficiary_age
location/@StartPosSpecify the starting position within a fixed-width record.21
location/@widthSpecify field width.8
varFormat/@typeSpecify variable data type.Numeric
varFormat; notesDocument storage formats, decimals, dates, encoding, or display conventions.YYYY-MM-DD
fileDscr; notesDocument file encoding and layout.UTF-8 CSV

8. Data Quality, Processing, and Linkage ​

Relevant DDI Areas: method, dataColl, fileDerivation, derivation, invalrng, notes

Administrative records are created for operational purposes, and their quality characteristics may differ from those of data collected specifically for research. Consolidate broad quality information at the study, source, or file level and document variable-specific limitations only when they materially affect interpretation of a particular field.

Study-Level Quality ​

Relevant DDI Area: stdyDscr/method

Study-level quality metadata describe issues that affect the dataset as a whole, including source-system processes, coverage limitations, data cleaning activities, linkage methodology, and comparability over time.

DDI ElementPurposeExample
dataCollDescribe data-capture procedures and validation controls applied during data collection or entry.Applications are entered through a web-based portal with mandatory-field validation and range checks.
collModeDescribe how information enters the source system.Caseworker entry and electronic reporting by local offices.
dataEditDocument editing, verification, correction, and validation procedures applied to source records.Automated checks identify duplicate beneficiary IDs and invalid dates.
cleanOpsDescribe data cleaning, standardization, and quality-improvement procedures.District names were standardized and malformed dates corrected prior to dissemination.
notesDocument coverage gaps, undercoverage, duplication, delayed reporting, and other known quality limitations.Three districts began reporting electronically in 2021, resulting in lower coverage before that year.
notesDocument record-linkage methods, linkage keys, and treatment of uncertain links.Deterministic linkage using encrypted national identification numbers; uncertain matches were flagged for review.
notesDocument linkage outcomes, including match rates and unmatched records.92.4% of eligible records matched successfully; 7.6% remained unmatched.
notesDescribe reliability, consistency, and comparability issues affecting the dataset.Benefit status is not directly comparable before and after the 2023 system migration.
notesRecord extraction, processing, and quality-assurance dates.Data extracted on 15 January 2025 and quality review completed on 28 February 2025.

TIP

Use study-level quality metadata for issues that affect the dataset as a whole.

File-Level Quality ​

Relevant DDI Area: fileDscr

File-level quality metadata describe issues affecting a specific file, including derivation processes, file transformations, file-level missingness, and known limitations.

DDI ElementPurposeExample
fileDerivationDocument how the file was created from one or more source files.Analytical file created by merging beneficiary and payment records.
fileDerivationDescribe recoding, aggregation, standardization, and transformation procedures applied to the file.Date fields were standardized to ISO 8601 format during processing.
notesDocument file-specific missing-data conventions.Values coded as -9 indicate not reported.
notesDescribe file-level exclusions or coverage limitations.Records from three pilot districts were excluded from dissemination.
notesDocument known file-specific quality concerns.Occupation codes are incomplete prior to 2021.
notesDescribe relationships with other files and linkage dependencies.Payment records are linked to beneficiary records using beneficiary_id.
notesRecord file-specific processing dates, refresh cycles, or version history.File generated on 15 January 2025 from the January production extract.

TIP

Use file-level quality metadata when a limitation affects only a specific file.

Variable-Level Quality ​

Relevant DDI Area: dataDscr/var

Variable-level quality metadata describe issues that affect interpretation of individual variables.

DDI ElementPurposeExample
invalrngDocument missing, invalid, suppressed, and not applicable values.-9 = Not reported; -8 = Not applicable.
sumStatProvide summary statistics useful for assessing variable quality.Missing values represent 4.3% of observations.
catgryDocument code values and category definitions.0 = No; 1 = Yes.
universeDescribe applicability restrictions for the variable.Applicable only to active beneficiaries.
notesDescribe variable-specific comparability issues.Household income definition changed in 2023.
derivationDocument how derived variables were constructed.Poverty status calculated from income and household size variables.
notesDescribe known quality concerns affecting interpretation.Occupation is self-reported and contains inconsistent text values.
notesDocument confidentiality treatments applied to the variable.Detailed geographic codes were recoded to broader administrative regions.

TIP

Only document quality issues at the variable level when they materially affect interpretation of the specific variable.


9. Disclosure Risk, Data Privacy, and Access ​

Relevant DDI Areas: setAvail, useStmt, restrctn, contact

DDI ElementPurposeExample
setAvailAvailability status.Licensed access
useStmtTerms of use.Data Use Agreement required
restrctnUsage restrictions.No redistribution
notesDisclosure controls.Direct identifiers removed
contactAccess contact point.Data Access Committee
security or notesRestricted variables.Detailed geography restricted

10. Related Materials ​

Relevant DDI Elements: otherMat, relMat

DDI ElementPurposeExample
otherMatSupporting resources.Program manual
relMatRelated publications.Technical linkage report
otherMat or relMatResource metadata.Technical Note PDF

TIP

External resources are also documented using the Dublin Core metadata standard. For more information, see Documenting Resources.

11. Versioning and Lineage ​

Relevant DDI Areas: verStmt, version, fileDerivation, notes

DDI ElementPurposeExample
versionDataset release.Version 2.0
versionResponsibilityResponsible organization.Statistics Directorate
versionDateRelease date.2026-08-01
fileDerivationLineage and derivation.Linked to revised source data
notesChange log.Geographic codes updated
IDNo or notesStable identifiers.MSP-NSAB-2024-v02

Administrative Data Dissemination Package ​

If disseminating the administrative data, a minimum dissemination package should include:

  • Data files.
  • Study-level metadata.
  • Source-system documentation.
  • Coverage metadata.
  • Cohort definitions.
  • File-level metadata.
  • Variable-level metadata.
  • Physical structure documentation.
  • Data quality and linkage documentation.
  • Access and disclosure-control information.
  • Related materials.
  • Citation, version, and lineage information.
  • Terms of use and contact information.

Key Principle ​

The objective is not merely to produce a narrative document. The objective is to create structured, machine-readable metadata that support discovery, interpretation, interoperability, preservation, responsible access, and reuse throughout the data lifecycle.

Documentation in the Metadata Editor

When using a metadata generation tool like the Metadata Editor, some file level and variable metadata are automatically populated e.g. file ID, variable ID. Information on the physical data structure, variable labels, category lables, missing counts and summary statistics is automatically included in the metadata when the file is loaded to the Metadata Editor.

References ​

  1. DDI Alliance. (2024). DDI-Codebook v2.6. Retrieved from https://ddialliance.org/ddi-codebook_v2.6

  2. DDI Alliance. (2024). DDI-Codebook 2.6 XML Schema Documentation. Retrieved from https://docs.ddialliance.org/DDI-Codebook/2.6/xmlschema/

  3. U.S. Department of Health and Human Services. Administrative Data Documentation Guidance. Retrieved from https://aspe.hhs.gov/sites/default/files/migrated_legacy_files/134606/ch_3.pdf

  4. United Nations Statistics Division. (2026, July). Guidance on Metadata. Retrieved from https://unstats.un.org/UNSDWebsite/resourceCatalog/documents/Guidance-on-metadata-July2026.pdf

The World Bank