Methodology Note

Modeling Micronutrient Intake in India

GAM-Based Estimation of Nutrient Intake, Nutrient Density, Dietary Diversity, and Prevalence of Inadequacy
Dr Shamika Ravi (Member, EAC to PM) & Dr Mudit Kapoor (CECFEE, EPU, ISI-Delhi Center)
February 2026

1. Introduction

This document explains how we model and predict micronutrient intake at the household level — both as reported (per AFE) and as nutrient density (per 1,000 kcal) — benchmarked against ICMR-NIN age-sex-specific nutrient requirements for each household member — using data from the Household Consumer Expenditure Survey (HCES) 2011–12 & 2023–24. The framework uses semi-parametric Generalized Additive Models (GAMs)1 within a two-stage hurdle structure2 to quantify how much of each essential micronutrient Indian households obtain from their diets, how intake varies across income levels and demographic groups, and what share of the population falls below nutritional requirements. The prevalence of inadequacy is computed at the person level using demographic-specific EAR/RDA values, then aggregated to the household for modeling.

1.1 What Do We Estimate?

The analysis produces four families of estimates for each micronutrient, each available on both bases — as reported (per AFE) and nutrient density (per 1,000 kcal):

  1. Probability of positive intake: What share of the population obtains any amount of a given micronutrient from their diet?

  2. Conditional intake level: Among households with positive intake, how much of the micronutrient (in the relevant unit per day) is consumed per Adult Female Equivalent (AFE)?

  3. Unconditional expected intake: Combining the two above — the population-average daily intake including zero-intake households — across expenditure deciles and demographic groups.

  4. Prevalence of inadequacy: What fraction of the population has usual intake below their individual nutrient requirement, computed using person-specific EAR and RDA values derived from each household member's age-sex profile?

The as-reported view shows what households actually recorded consuming; the density view (per 1,000 kcal) expresses each nutrient relative to the household’s own recorded energy, isolating whether the diet is compositionally nutrient-rich rather than simply reflecting total food quantity — and, because a proportional recording error cancels in the ratio, it is robust to mis-reporting (Section 7.4). Both bases are produced for intake and prevalence of inadequacy. The Shannon Diversity Index, being inherently scale-free, needs neither.

In addition, two supplementary analyses are run for each micronutrient: intake excluding cereals (to assess dietary source diversity) and the Shannon Diversity Index of food sources contributing to micronutrient intake.

1.2 Micronutrients Analyzed

The analysis covers 9 micronutrients and macronutrients, benchmarked against ICMR-NIN dietary requirements3 for adult woman (55kg, moderately active, non-lactating):

Micronutrient Unit Description
Iron mg/day Essential for oxygen transport; deficiency causes anaemia
Folate µg/day Critical for cell division and neural tube development
Zinc mg/day Supports immune function and wound healing
Vitamin B1 (Thiamine) mg/day Required for carbohydrate metabolism
Vitamin B2 (Riboflavin) mg/day Involved in energy production and cell function
Vitamin B3 (Niacin) mg/day Supports metabolism and DNA repair
Vitamin B6 mg/day Required for amino acid metabolism
Vitamin C mg/day Antioxidant; supports immune function
Calcium mg/day Essential for bone health

Inadequacy prevalence is computed for all micronutrients that have defined EAR values in the ICMR-NIN reference tables. While the dashboard displays benchmarks for a reference adult woman (55 kg, moderately active, non-pregnant and non-lactating), the underlying prevalence calculation uses person-specific EAR and RDA values for each household member (Section 5).

Micronutrient EAR RDA Units
Iron 15 29 mg
Vitamin B9 (Folate) 180 220 mcg
Zinc 11 13.2 mg
Vitamin B1 1.4 1.7 mg
Vitamin B2 2 2.4 mg
Vitamin B3 12 14 mg
Vitamin B6 1.6 1.9 mg
Vitamin C 55 65 mg
Calcium 800 1000 mg

Source: ICMR-NIN Recommended Dietary Allowances for Indians (2024). Reference values shown are for an adult woman, 55 kg, moderately active, and non-lactating. The prevalence of inadequacy analysis (Section 5) uses person-specific EAR and RDA values derived from each household member's age-sex profile.

2. Data Construction

2.1 From Food Quantities to Micronutrient Intake

Micronutrient intake is not directly observed in the HCES. Instead, it is derived by combining three data sources:

  1. Household food quantities from the HCES (amount of each food item consumed over the reference period)
  2. Food composition tables4 that map food items to micronutrient content per unit weight
  3. Reference period data to convert consumption from weekly/monthly reporting windows to daily values

For each household i, food item j, and micronutrient m, the daily household-level micronutrient intake is:

Qijm = qij × cjm Tj

where qij is the quantity of food j consumed by household i over the reference period, cjm is the micronutrient content of food j per unit weight, and Tj is the reference period in days for food item j. Micronutrient content values are drawn from the Indian Food Composition Tables (IFCT) published by ICMR-NIN4, supplemented by Vijayakumar et al.5.

Total daily household intake of micronutrient m sums across all food sources, grouped into 10 food categories (cereals & millets, green leafy vegetables, other vegetables, roots & tubers (excluding potatoes), fruits, milk & milk products, fats & oils, oilseeds & nuts, pulses & beans, and flesh foods (eggs/fish/meat)):

Yihh = ∑j=110 Qijm

2.2 Adult Female Equivalent (AFE) Scaling

To make intake comparable across households of different sizes and demographic compositions, we express intake per AFE using energy-based equivalence scales:

Yi = Yihh HH Size (AFE Energy)i

The energy-based AFE scale converts each household member’s energy requirement to the equivalent number of adult females, based on ICMR-NIN age-sex-specific energy requirements.3 This produces a per-person measure that accounts for the varying nutritional needs within a household.

The energy requirements and corresponding AFE scale factors used in this analysis are shown in Table 1. The reference category is the adult woman (moderate activity), whose requirement of 2,130 kcal/day defines one AFE unit.

Table 1: ICMR-NIN Energy Requirements and AFE Scale Factors
Demographic Profile Activity Level Energy Requirement (kcal/day) AFE Scale Factor
Child 0 to 12 mo—5950.28
Child 1 to 3 yrs—1,1100.52
Child 4 to 6 yrs—1,3600.64
Child 7 to 9 yrs—1,7000.80
Girls 10 to 12 yrs—2,0600.97
Boys 10 to 12 yrs—2,2201.04
Girls 13 to 15 yrs—2,4001.13
Boys 13 to 15 yrs—2,8601.34
Girls 16 to 18 yrs—2,5001.17
Boys 16 to 18 yrs—3,3201.56
Adult women (reference)Moderate2,1301.00
Adult women (lactating)Moderate2,6901.26
Adult menModerate2,7101.27

For example, a household comprising one adult man, one adult woman, and one child aged 4–6 would have an AFE household size of 1.27 + 1.00 + 0.64 = 2.91, rather than a simple headcount of 3. Dividing total household intake by this AFE size yields a per-AFE measure that is comparable across households of different demographic compositions.

Implementation Details

The AFE scale is constructed at the individual level from the HCES person-level roster, which records each household member's age and gender. The assignment proceeds in three steps:

Step 1 — Lactation status imputation. The HCES does not directly record lactation status. We proxy it using the presence of a child under 12 months in the household. If at least one child aged <1 is present, the youngest woman aged 19–49 in the household is classified as lactating and assigned the higher energy requirement of 2,690 kcal/day (= 2,130 base + 560 lactation increment, where 560 is the average of the ICMR-NIN increments of 600 kcal for 0–6 months and 520 kcal for 6–12 months postpartum). If there are n children under 1, then up to n women (ordered youngest-first) are assigned lactating status. Remaining adult women, as well as all women aged 50 and above, receive the non-pregnant, non-lactating requirement of 2,130 kcal/day.

Step 2 — Energy requirement assignment. Each household member is mapped to an age-sex-specific energy requirement from Table 1 using the following rules: children are classified solely by age (the infant category uses the average of the ICMR 0–6 month and 6–12 month values); adolescents aged 10–18 are further stratified by gender; and all adults are assigned the moderate activity level. Adult men (and transgender individuals coded as gender = 3) receive the adult male requirement of 2,710 kcal/day regardless of age.

Step 3 — AFE conversion and household aggregation. Each member's AFE scale factor is computed as AFEk = Ereqk / 2,130. The household AFE size is then the sum across all members: HH Size(AFE)i = ∑k AFEk. An individual's within-household energy share is sharek = AFEk / HH Size(AFE)i, which is used in subsequent micronutrient allocation steps.

The R implementation is shown below:

HCES2023_AFE_energy <- HCES2023_level02 %>%
  dplyr::select(hhid, person_sno, gender, age) %>%
  arrange(hhid, gender, age) %>%
  group_by(hhid) %>%
  mutate(under_1_a = ifelse(age < 1, 1, 0)) %>%
  ungroup() %>%
  group_by(hhid) %>%
  mutate(
    child_under_1   = max(under_1_a),
    n_child_under_1 = sum(under_1_a)
  ) %>%
  ungroup() %>%
  mutate(
    women_18_50 = dplyr::case_when(
      (age >= 19 & age < 50) & gender == "2" ~ 1,
      .default = 0
    )
  ) %>%
  group_by(hhid, women_18_50) %>%
  mutate(seq = row_number()) %>%
  ungroup() %>%
  mutate(
    energy_requirement = dplyr::case_when(
      age < 1                                          ~ 595,
      age >= 1  & age <= 3                             ~ 1110,
      age >= 4  & age <= 6                             ~ 1360,
      age >= 7  & age <= 9                             ~ 1700,
      (age >= 10 & age <= 12) & (gender %in% c("1","3")) ~ 2220,
      (age >= 10 & age <= 12) & (gender == "2")        ~ 2060,
      (age >= 13 & age <= 15) & (gender %in% c("1","3")) ~ 2860,
      (age >= 13 & age <= 15) & (gender == "2")        ~ 2400,
      (age >= 16 & age <= 18) & (gender %in% c("1","3")) ~ 3320,
      (age >= 16 & age <= 18) & (gender == "2")        ~ 2500,
      (age >= 19) & (gender %in% c("1","3"))           ~ 2710,
      (age >= 19) & (gender == "2") & (child_under_1 == 0) ~ 2130,
      (age >= 19 & age < 50) & (gender == "2") &
        (child_under_1 == 1) & (seq <= n_child_under_1)   ~ 2690,
      (age >= 19 & age < 50) & (gender == "2") &
        (child_under_1 == 1) & (seq > n_child_under_1)    ~ 2130,
      (age >= 50) & (gender == "2")                    ~ 2130
    )
  ) %>%
  mutate(
    AFE_energy   = energy_requirement / 2130,
    share_energy = AFE_energy / sum(AFE_energy),
    .by = hhid
  )

2.3 Intake Without Cereals

For each micronutrient, a parallel variable is constructed that excludes the cereal contribution:

Yiwo = Yihh − Qi,cerealm HH Size (AFE Energy)i

This decomposition is important because cereals dominate Indian diets and can mask micronutrient source diversity. For iron, for example, a high total intake may reflect heavy cereal consumption (with low bioavailability) rather than diverse dietary sources.

2.4 Shannon Diversity Index of Food Sources

To capture the diversity of dietary sources contributing to micronutrient intake, we compute the Shannon Diversity Index6 across the 10 food categories:

Hi = − ∑j=110 pij ln pij

where pij = Qijm / ∑k Qikm is the share of micronutrient m that household i derives from food category j. Zero-share categories are excluded from the sum. Hi = 0 when all intake comes from a single food group, and Hi = ln(10) ≈ 2.30 when intake is equally distributed across all 10 categories.

2.5 Consumption Indicators and Sample Restrictions

The analysis is restricted to households with cooking arrangements (excluding those coded as “no cooking”), since micronutrient intake from purchased/consumed food is meaningful only for households that prepare meals. A binary consumption indicator is defined for each model variant:

Di = { 1if Yi>0 0otherwise }

2.6 Nutrient Density (per 1,000 kcal)

Absolute micronutrient intake is strongly correlated with total food consumption: a household that eats more food mechanically obtains more of every nutrient. To separate diet composition from diet quantity — and, as Section 7 shows, to obtain an estimate that is robust to proportional mis-reporting — the second basis we report is the micronutrient density: the recorded nutrient per 1,000 kcal of the household’s own recorded energy.1314 It answers “how nutrient-rich is the diet,” independent of how much was recorded.

Writing \(Y^{\text{hh}}_{m,i}\) for the recorded amount of nutrient \(m\) and \(E^{\text{hh}}_i\) for recorded energy, the two reported bases are simply:

$$\textbf{As reported: }\; y^{\text{unadj}}_i = \frac{Y^{\text{hh}}_{m,i}}{A_i}\ \text{(per AFE)}, \qquad \textbf{Density: }\; y^{\text{dens}}_{i} = \frac{Y^{\text{hh}}_{m,i}}{E^{\text{hh}}_i/1000}\ \text{(per 1,000 kcal)}.$$

The density is the response actually modelled on the “adjusted” / “Per 1,000 kcal” basis (in code, unadj_mn_hh / (total_calories_kcal_hh/1000)). The reference build’s columns scaling_factor and adjusted_mn_hh_afe — an energy-adjusted scaled intake — exist in the prepared data but are unused: we report the density, never a rescaled intake.

Prevalence stays on the reported quantity too. Inadequacy on the density basis is assessed the same way the number is reported — the household density is compared to each member’s critical density \(\text{EAR}_j/(E^{\text{req}}_j/1000)\), with the requirement spread \(\text{SD}_j/(E^{\text{req}}_j/1000)\) (Section 5.3). No intake is rescaled anywhere; the requirement threshold is simply expressed per 1,000 kcal so that it is on the same footing as the density.

Interpretation

The dashboard presents both bases as complementary lenses for policy:

Note: The Shannon Diversity Index is invariant to the density transform because it depends only on the proportional shares of a nutrient’s food sources, not on absolute intake levels. It is therefore computed only once per household.

3. Model Specification

3.1 Overview: Three Model Variants per Micronutrient

For each micronutrient, three parallel hurdle models are estimated:

Variant Outcome Purpose
Main Total intake per AFE (all food sources) Primary intake estimate + inadequacy assessment
Without cereals Total intake per AFE excluding cereals Measures non-cereal dietary quality
Shannon Shannon Diversity Index of food sources Captures dietary source diversity

Each variant consists of two sub-models (probability and quantity), producing six GAM models per micronutrient per survey round. The full model suite is estimated twice — once on the nutrient density (per 1,000 kcal) basis and once on the as-reported (per AFE) basis — with the logit participation model and Shannon models shared (the sign of intake and the proportional shares are invariant to the density transform).

3.2 The Hurdle Model Framework

Each model variant follows the same two-stage hurdle structure.27 Let Yi denote the outcome for household i (intake, intake-without-cereals, or Shannon index). The expected value is:

E[Yi] = Pr(Yi>0) × E[Yi|Yi>0] = pi × μi

The two components are estimated separately:

Part 1 — Probability model (logit sub-model): Estimated on all households using a quasi-binomial GAM with logit link.

Part 2 — Quantity model (positive sub-model): Estimated only on households with Yi > 0 using either a log-normal or Gamma(log) GAM. Model selection between the two families is based on AIC comparison.

3.3 GAM Specification

Both sub-models share the same semi-parametric GAM predictor structure.1 The right-hand side is generated by the food consumption model’s make_formula() — byte-for-byte the specification used in the food and macronutrient pipelines — so a micronutrient gradient can be read alongside a food gradient without a difference being an artefact of a different model. It combines fixed effects (the penalized thin-plate spline in log-MPCE and its factor-smooth interactions with demographics) with random effects (region, region×sector, sector and the demographic intercepts, fitted as bs = "re" penalized deviations). Illustrated for the main variant:

Logit sub-model (probability of positive intake):

logit(pi) = β0 + f(x) + ∑k fk(x,zk) + random effects

Quantity sub-model (conditional mean for positive values):

g(μi) = β0 + f(x) + ∑k fk(x,zk) + random effects

where x = log(MPCEreal, AFE) is log real monthly per capita expenditure in AFE terms, and g(·) is the log link for both log-normal and Gamma models.

3.3.1 The make_formula() Predictor (Fixed & Random Effects)

The right-hand side is exactly what make_formula() emits, with \(x = \log(\text{MPCE}_{\text{real,AFE}})\). It has three blocks — parametric fixed main effects, penalized smooths (a global income curve, a state factor-smooth, and demographic difference smooths), and random intercepts:

Term (as coded) Type Role
sector + child + female_headed + social + rel Parametric main effects (fixed) Level shifts for rural/urban, presence of children, female-headed, social group, religion
s(x, k = 10) Thin-plate spline (fixed) Global expenditure–intake curve, at the reference levels of the factors
s(x, state_code, bs = "fs", k = 5, m = 1) Factor-smooth (penalized) State-specific expenditure curves, with shared shrinkage across states
s(x, by = child_o, k = 5) Difference smooth (ordered by-factor) How the income gradient deviates for households with children vs. the reference
s(x, by = female_headed_o, k = 5) Difference smooth Income-gradient deviation for female-headed households
s(x, by = social_o, k = 5) Difference smooth Income-gradient deviation by social group
s(x, by = rel_o, k = 5) Difference smooth Income-gradient deviation by religion
s(state_code, bs = "re") Random intercept State intercepts, shrunk toward the national mean
s(nss_region, bs = "re") Random intercept NSS-region deviation (region codes nest within state, so this is the within-state region effect)
s(reg_sector, bs = "re") Random intercept Region × sector deviation — lets the rural/urban gap vary by region, over and above the parametric sector effect

When with_seasonal = TRUE (the default for the micronutrient fits) two further terms enter — a parametric seasonal main effect and a difference smooth s(x, by = seasonal_o, k = 5) for the survey-month deviation. These are held at their neutral value in the prediction grid (Section 4.4).

Fixed vs. random, and “difference smooths.” The parametric main effects and the penalized income splines are the fixed part; the three bs = "re" terms (state_code, nss_region, reg_sector) are random intercepts, which shrink small or noisy cells toward the mean rather than assigning them unstable fixed coefficients. There is deliberately no random intercept on sector/social/rel/child/female_headed — those enter as parametric fixed effects plus a difference smooth. The demographic terms use mgcv’s ordered-factor convention (the _o twins): with an ordered by variable the smooth is fitted as a deviation from the reference level’s curve (m = 1 first-order penalty), so each group’s income gradient is a penalized departure from the global one rather than a free-standing curve.8

3.4 Estimation

All models are estimated using mgcv::bam() with the following settings1:

Parameter Value Rationale
method "fREML" Fast REML for large-sample smooth parameter estimation
discrete TRUE Discretized covariate method for datasets > 100,000 observations9
gamma 1.4 Extra penalty on effective degrees of freedom to prevent overfitting
gc.level 2 Aggressive garbage collection to manage memory
select TRUE Allows smooth terms to be penalized to zero (automatic variable selection)10

Probability model: family = quasibinomial(link = "logit") — quasi-likelihood allows for over/under-dispersion relative to the binomial.

Quantity model: Two candidate families are estimated and the one with lower AIC is selected:

3.5 Survey Weights

To account for the complex survey design, observations are weighted using per-capita survey weights:

wipc = wi × FDQ HH Sizei w¯

where wi is the original survey weight and the denominator normalizes by the mean of the numerator, producing weights that average to 1.

4. Prediction Grid Construction

4.1 The Geographic Standardization Problem

Raw group means (e.g., average iron intake by religion) confound the focal effect with geographic and demographic composition. A religious group concentrated in states with higher cereal consumption will mechanically show different intake patterns even if there is no causal effect of religion on intake.

The prediction grid isolates focal effects by constructing counterfactual populations where non-focal variables are held at a standardized distribution while the focal variable and expenditure vary naturally.

4.2 Grid Construction by Comparison Type

The grid construction depends on which grouping variable is focal:

4.2.1 State Comparisons (group_vars = c("nss", "state_code"))

Each state retains its actual geographic structure (NSS regions, rural/urban mix). Demographics are standardized to the national distribution.

4.2.2 NSS Region Comparisons (group_vars = c("nss", "nss_region"))

Two options are available. The standardized version gives all regions the same rural/urban mix; the unstandardized version keeps each region’s actual sector distribution.

4.2.3 Sector Comparisons (group_vars = c("nss", "sector"))

The national state-region distribution is standardized so that the pure rural–urban effect is isolated:

4.2.4 Demographic Comparisons (e.g., religion, social group, child status)

Full geographic standardization: the national distribution of states, regions, and sectors is applied uniformly to all demographic groups, isolating the effect of the focal variable.

4.3 Expenditure Binning

For each group, households are assigned to expenditure deciles using group-specific cutpoints from the pre-computed MPCE distribution:

bi = 1 + findInterval ( MPCEi , { c10 , c20 , … , c90 } )

Within each decile, the group-specific mean MPCE is used as the representative expenditure level (on log scale) for prediction. An “Overall” bin uses the population-weighted mean MPCE for each group.

4.4 Seasonal Model Variation

For the micronutrient models, the seasonal variable is excluded from the prediction grid (season = "FALSE"), unlike the food consumption models. This is because micronutrient intake aggregates across all food sources and seasonal variation is absorbed into the expenditure–intake relationship.

4.5 Standardized Values: The G-computation Estimator

Sections 4.1–4.4 describe which counterfactual population is built; this section states how a standardized number is computed from it. The estimator is the same two-part g-computation used throughout the food and macronutrient pipelines, applied here to each micronutrient.

Fix a focal covariate \(V\) and a level \(\ell\). For every household set \(V_i=\ell\), apply the geographic drop rules of Section 4.2 (a reassigned geography makes the region and region×sector random deviations stale, so they revert to their neutral zero-centred value, while the parametric main effect is retained), and predict the two parts of the hurdle from the counterfactual design rows \(\mathbf{X}^{L}_i(\ell)\) (participation) and \(\mathbf{X}^{Q}_i(\ell)\) (conditional amount):

$$\widehat{P}_i(\ell) = \operatorname{logit}^{-1}\big(\mathbf{X}^{L}_i(\ell)\,\widehat{\boldsymbol\beta}_L\big), \qquad \widehat{Q}_i(\ell) = \exp\big(\mathbf{X}^{Q}_i(\ell)\,\widehat{\boldsymbol\beta}_Q + \delta\big),$$

where \(\delta=\hat\sigma^2/2\) is the log-normal smearing correction (and \(\delta=0\) for a Gamma conditional). Letting \(g\) index the reporting cell — a national income decile, or the “Overall” row — with survey weights \(w_i\), the standardized mean intake is the weighted aggregate of the unconditional expectation \(\widehat{P}_i\widehat{Q}_i\):

$$\widehat{y}_g(\ell) = \frac{\sum_{i\in g} w_i\,\widehat{P}_i(\ell)\,\widehat{Q}_i(\ell)}{\sum_{i\in g} w_i}, \qquad \widehat{P}_g(\ell) = \frac{\sum_{i\in g} w_i\,\widehat{P}_i(\ell)}{\sum_{i\in g} w_i}, \qquad \widehat{Q}_g(\ell) = \frac{\sum_{i\in g} w_i\,\widehat{P}_i(\ell)\,\widehat{Q}_i(\ell)}{\sum_{i\in g} w_i\,\widehat{P}_i(\ell)}.$$

The dashboard’s m is \(\widehat{y}_g(\ell)\). Micronutrient participation is near-universal, so in practice \(\widehat{P}_i(\ell)\approx 1\) and this reduces to the survey-weighted mean of \(\widehat{Q}_i(\ell)\); aggregating participation and amount inside the same cell keeps their product exact. The \(M\) posterior draws of Section 6 repeat this aggregation draw-by-draw to attach a 95% credible interval.

Density basis. On the “per 1,000 kcal” basis the modelled response is already the household nutrient density \(Y^{\text{hh}}_{m,i}/(Y^{\text{hh}}_{\text{kcal},i}/1000)\), so the very same aggregation returns the standardized density (mg or µg per 1,000 kcal) directly — no separate machinery. The requirement thresholds drawn against density rows are rescaled to the reference-AFE critical density (Section 7.4).

Income is never reassigned; standardized vs. as-is. Only the focal variable moves — each household keeps its actual MPCE, and the decile is purely a reporting grouping, so within a decile the income distribution is identical across the levels compared (“compared at the same income”). The per-decile rows are these standardized values; the bin = "Overall" figure is the unadjusted, as-is survey-weighted mean at observed covariates, matching the food, macronutrient and affordability convention.

5. Prevalence of Inadequacy

5.1 Person-Level Approach Using Household Demographics

A key feature of this analysis is that the prevalence of inadequacy is not computed from a single reference EAR/RDA for an adult woman. Instead, it exploits the full demographic composition of each household — the age, sex, and physiological profile of every member — to derive a household-specific probability of inadequacy that reflects the actual requirements of the people consuming the food.1112

The procedure has three stages: (1) allocate household intake to individual members, (2) evaluate each member's probability of inadequacy against their person-specific requirement distribution, and (3) aggregate back to the household level for use as a GAM outcome.

5.2 Requirement Distributions

For each household member k with age-sex profile p, the ICMR-NIN reference tables3 provide a person-specific EARp and RDAp. The standard deviation of the requirement distribution is derived from the relationship RDA = EAR + 2 × σreq:

σp = RDAp − EARp 2

For most nutrient-profile combinations, requirements are assumed to follow a normal distribution. The exception is iron for menstruating women and adolescent girls (adult women and girls aged 13–18), where requirements follow a log-normal distribution because menstrual iron losses are highly variable and right-skewed:15

σp,log = ln(RDAp) − ln(EARp) 2

The complete set of person-specific EAR and RDA values used in this analysis is shown in Figure 5.1 below. These reference values — drawn from the ICMR-NIN 2024 guidelines3 — define the requirement distributions against which each household member's allocated intake is evaluated. Click any micronutrient segment to view exact EAR and RDA values for all thirteen demographic profiles; click the centre to reset. Note the substantially higher iron RDA for menstruating females (girls 13–18, adult women) relative to their EAR, reflecting the log-normal requirement distribution discussed above.

Figure 5.1 — ICMR-NIN EAR and RDA by Demographic Profile and Micronutrient

Source: ICMR-NIN (2024). Each segment represents one micronutrient. Click to view EAR/RDA by demographic profile; click centre to reset. Iron for menstruating females uses a log-normal requirement distribution; all others normal.

5.3 Individual Probability of Inadequacy

Household intake is allocated to individual members in proportion to each member's energy requirement (following the intra-household allocation approach of Smith & Subandoro, 200716):

Yk = Yihh × Ekreq ∑jni Ejreq

where the household total Yhhi is the as-reported (per AFE) nutrient allocated to members by their energy share, producing the as-reported prevalence. The share weights sum to one within each household by construction.

The density basis compares a density to a critical density — nothing is rescaled. On the density basis each member is assessed by comparing the household density \(d_i = Y^{\text{hh}}_{m,i}/(E^{\text{hh}}_i/1000)\) — the very quantity we report — to their own critical density, the requirement expressed per 1,000 kcal:

$$\pi_j = \Phi\left(\frac{\text{EAR}_j/(E^{\text{req}}_j/1000) - d_i}{\text{SD}_j/(E^{\text{req}}_j/1000)}\right).$$

The as-reported basis (above) allocates the household nutrient by energy share and compares to \(\text{EAR}_j\) directly. Neither basis multiplies anyone’s intake by a factor: the density estimate and its inadequacy are both read straight off the reported density.

The individual probability of inadequacy is then computed by evaluating each member's allocated intake against their person-specific requirement distribution:

πk = { 1 − Φ(Yk; EARp, σp2) Normal case 1 − FLN(Yk; lnEARp, σp,log2) Iron, menstruating }

This gives the probability that a random draw from member k’s requirement distribution exceeds their allocated intake — that is, the probability that member k is nutrient-inadequate given what the household reports consuming.

5.4 Household Aggregation

The household-level probability of inadequacy is the unweighted average across all members:

πi = 1ni ∑k=1ni πk

This household-level probability is computed separately for the density and as-reported intake allocations. Boundary values (exactly 0 or 1) are squeezed into the open interval (ε, 1−ε) with ε = 10−6 for compatibility with quasi-binomial regression.17

5.5 Modeling Prevalence as a GAM Outcome

The household-level prevalence πi is then used as the response variable in a quasi-binomial GAM with logit link, using the same GAM specification (Section 3.3) as the intake models:

logit(πi) = f(log MPCE) + smooth terms + random effects

This allows the prevalence of inadequacy to vary smoothly across expenditure levels and demographic groups, with full posterior uncertainty quantification via the same simulation machinery (Section 6). Separate prevalence models are estimated for the density and as-reported variants.

Comparison with the standard EAR cut-point method. The conventional approach11 treats all individuals as having the same requirement (that of a reference adult woman) and asks whether the household's per-AFE intake falls below this single threshold. Our approach instead recognizes that a household with young children, adolescent girls, and adult men has a different mix of requirements than a household of adult women alone. By evaluating each member against their own EAR/RDA and averaging, we obtain a prevalence estimate that reflects the actual demographic composition of the household. This is particularly important for nutrients like iron, where requirements vary dramatically by age, sex, and menstrual status.

6. Posterior Simulation and Uncertainty Propagation

The analysis propagates uncertainty from two sources: (1) model uncertainty in the estimated smooth functions (coefficient uncertainty and dispersion parameter uncertainty), and (2) sampling uncertainty from the complex survey design. The approach exploits the Bayesian interpretation of penalized splines, where smoothing penalties correspond to improper Gaussian priors on the spline coefficients, yielding an approximate multivariate normal posterior for the coefficient vector.1

6.1 Step 1: Covariance Matrix Validation

Before drawing coefficient vectors, the posterior covariance matrix Vp = Cov(β̂) is checked for positive definiteness:

λmin (Vp) > 10−10

If the check fails, two repair strategies are available: (a) nearPD — project onto the nearest positive-definite matrix in the Frobenius norm (via Matrix::nearPD()); (b) jitter — add a small diagonal perturbation V + εI.

6.2 Step 2: Draw Coefficient Vectors

Coefficient draws are sampled from the approximate posterior:

β(s) ∼ N ( β^ , Vp ) , s=1,…,M

Separate draw matrices are generated for each sub-model: BL (M × pL) for the logit model and BQ (M × pQ) for the quantity model. This is done independently for all three variants (main, without-cereals, Shannon), yielding 6 draw matrices per micronutrient per survey round.

6.3 Step 3: Draw Dispersion Parameters

The quantity model’s dispersion parameter is drawn from its sampling distribution:

Log-normal model: The residual variance σ² has a scaled inverse-chi-squared posterior:

σ(s) = σ^2 × ν χν2

The log-normal bias correction for each draw is δ(s) = 0.5 × (σ(s))2.

Gamma model: The dispersion φ has a similar scaled distribution:

φ(s) = φ^ × ν χν2 , shape(s) = 1/φ(s)

where ν is the residual degrees of freedom from the fitted model.

6.4 Step 4: Chunked Household-Level Predictions

The prediction grid is processed in blocks (default: 5,000 rows) to manage memory. For each block:

Linear predictors via the lpmatrix:

ηL = XL BLT (n×M) ηQ = XQ BQT (n×M)

Transform to response scale:

Posterior predictive draws for individual-level intake:

Inadequacy CDF evaluation (if enabled): For each of the K = 50 requirement draws, the CDF of the positive-intake distribution is evaluated at Rk, then averaged and combined with the zero-probability term.

6.5 Step 5: Weighted Aggregation to Group × Decile

Within each block, household-level draws are accumulated into group-level weighted averages using normalized within-group weights:

w~i = wi ∑j∈g wj

The accumulator matrices (G × M) are pre-allocated for: probability, conditional mean, unconditional expected intake, posterior predictive (positive and unconditional), and inadequacy prevalence. Block-level contributions are added via weighted cross-products.

6.6 Step 6: Survey Standard Errors

Plug-in predictions at the coefficient point estimates are computed for each household in the original survey data. A complex survey design object is created:

des <- svydesign(ids = ~psu, strata = ~strata, weights = ~wts, nest = TRUE)

Survey standard errors are obtained for each group × decile cell via svyby() with svymean(), separately for:

The lonely PSU adjustment (survey.lonely.psu = "adjust") ensures stable variance estimates when a stratum contains only one PSU.

6.7 Step 7: Injecting Sampling Uncertainty

Survey standard errors are combined with model draws using scale-appropriate transformations:

Probability draws (logit scale, via delta method):

σlogit = SE(p¯) p¯(1−p¯) , p~(s) = logit−1 [ logit(p(s)) + ε(s) ]

where ε(s) ~ N(0, σlogit2). Values are clipped to [10−6, 1 − 10−6].

Quantity and intake draws (log scale, mean-preserving):

σlog = SE(q¯) q¯ , q~(s) = q(s) × exp ( ε(s) − 0.5 σlog2 )

The bias correction −0.5σlog2 ensures E[exp(ε − 0.5σ2)] = 1, so the noise is mean-preserving.

Inadequacy draws use the logit-scale transformation (same as probability draws), since inadequacy prevalence is a proportion.

Unconditional posterior predictive draws with sampling uncertainty are constructed by combining the noise-injected probability draws with the original posterior predictive quantity draws:

Yuncond(s) = Zsvy(s) × Ypos(s) , Zsvy(s) ∼ Bernoulli ( p~svy(s) )

6.8 Step 8: Summary Statistics

For each group × decile × model variant, the following summaries are extracted from the M posterior draws:

Statistic Definition
Mean (1/M) Σs θ(s)
Median 50th percentile of {θ(s)}
95% credible interval [2.5th, 97.5th] percentiles of {θ(s)}

Summaries are computed separately for: intake (main), inadequacy prevalence (main only), intake without cereals, and Shannon diversity.

7. Under- and Over-Reporting

Self-reported diet data are systematically mis-recorded, and the error is not random — it is strongly graded by income. Because every micronutrient number here is built from the same food diaries, this section states the flag we use, why we do not simply drop flagged households, and why the density basis and the prevalence built on it are structurally robust to the dominant form of the error.

7.1 The EI:BMR (Goldberg) Flag

We flag implausible energy reports with the Goldberg EI:BMR ratio: reported energy per AFE divided by the reference AFE’s basal metabolic rate,

$$\text{EI:BMR}_i = \frac{E_{\text{AFE},i}}{\text{BMR}_{\text{ref}}}, \qquad \text{BMR}_{\text{ref}} = \frac{\text{REQ}_{\text{AFE}}}{\text{PAL}_{\text{ref}}} = \frac{2130}{1.64} = 1298.78\ \text{kcal},$$

flagging \(\text{EI:BMR}\lt 1.35\) as under-reporting and \(\text{EI:BMR}\gt 2.40\) as over-reporting. In these data roughly a quarter of households are flagged as under-reporters in both rounds, and the flag is strongly graded by income — on the order of 65% in the poorest decile versus about 8% in the richest. The full diagnostic is a separate reporting module with its own methodology note.

Why the gap between the two bases is the mis-reporting signal. A household’s energy-completeness ratio — required energy over reported energy — equals \(2130/E_{\text{AFE},i} = 1.64/\text{EI:BMR}_i\). This is a diagnostic, not something applied to the reported numbers: it says the as-reported and density readings coincide exactly at \(\text{EI:BMR}=1.64\), the density reading is more optimistic below it (reported energy short of requirement) and more pessimistic above it, and the gap between the two bases is largest in the poorest decile — precisely where under-reporting is heaviest.

7.2 The Circularity Trap

The obvious response — drop the flagged households — is a trap here, and it is worth being precise about why.

The flag is computed from calories. Excluding households because their calories are low, and then estimating intake (or inadequacy), is conditioning on the outcome: it truncates the very distribution being estimated. Because the truncation is far heavier at the bottom of the income distribution (about 65% of D1 versus 8% of D10), it removes the poorest tail wholesale and mechanically flattens the income gradient — producing exactly the bias the exclusion was meant to prevent, and doing so most severely where the concern is greatest. The same objection applies, in weaker form, to any nutrient strongly correlated with energy, and to including the flag itself as a covariate: a variable derived from the outcome is not a legitimate control.

7.3 Headline vs. Sensitivity

Our policy follows from Section 7.2:

  1. The headline fit keeps every household — no selection on the outcome.

  2. Exclusion is run as a sensitivity, never as the default. The model set is refit with implausible reporters dropped (the _excl fits) and reported side by side, so the influence of the flag is quantified rather than assumed. The dashboard’s robustness panel shows, per micronutrient and basis, the national Overall and decile estimate on all households versus the excluded sample — for both mean intake and prevalence of inadequacy — computed by reusing the already-fitted models (national cells only), so it costs minutes rather than a full refit.

Reporting both is the honest position: it shows the reader how much of a result depends on the treatment of mis-reporters.

7.4 Why Density — and the Prevalence Built on It — Are Robust

This is the key structural argument for reporting a density basis. Suppose a household under-records its entire diary by a proportional factor \(\lambda_i\in(0,1]\), so every recorded nutrient and its recorded energy are \(\lambda_i\) times the truth. The nutrient density cancels the factor exactly, while the as-reported intake per AFE is biased by exactly \(\lambda_i\):

$$\begin{aligned} \textbf{As reported:}\quad & \frac{Y^{\text{obs}}_{m,i}}{A_i} = \lambda_i\cdot\frac{Y^{\text{true}}_{m,i}}{A_i} \qquad\text{(biased by }\lambda_i\text{)},\\[5pt] \textbf{Density:}\quad & \frac{Y^{\text{obs}}_{m,i}}{Y^{\text{obs}}_{\text{kcal},i}/1000} = \frac{\lambda_i\,Y^{\text{true}}_{m,i}}{\lambda_i\,Y^{\text{true}}_{\text{kcal},i}/1000} = \frac{Y^{\text{true}}_{m,i}}{Y^{\text{true}}_{\text{kcal},i}/1000} \qquad\text{(unbiased)}. \end{aligned}$$

The same cancellation carries into the prevalence of inadequacy on the density basis. Each member’s allocated intake is assessed against a critical density \(\text{EAR}_j/(E^{\text{req}}_j/1000)\), and because the household density in the numerator is \(\lambda\)-free, the individual risk \(\Phi\big((\text{EAR}_j-\text{intake}_{ij})/\text{SD}_j\big)\) is evaluated at a mis-reporting-invariant intake. So the density-based inadequacy barely moves under exclusion, while the as-reported level — and the inadequacy computed from it — shifts. The robustness panel is designed to make exactly this contrast visible: flip the basis toggle and the “all” and “excluded” columns nearly coincide on the density basis but diverge on the as-reported basis.

The caveat. The cancellation requires the error to be roughly proportional across foods. If under-recording is selective — e.g. micronutrient-rich items such as green leafy vegetables, fruit or animal foods are omitted more than staples — then \(\lambda\) differs by food and densities shift too. Selective omission is real but second-order relative to overall under-recording, so densities remain substantially more robust than levels, not perfectly immune.

8. Computational Implementation

8.1 Batch Processing Architecture

The full analysis covers 10 micronutrients × 7 grouping variables = 70 jobs, where each job runs both survey rounds (HCES 2011–12 and 2023–24). Within each job, the three model variants (main, without-cereals, Shannon) are processed sequentially, sharing the same prediction grid.

The batch processor uses future_lapply() for parallel execution across items and grouping variables:

batch_generate_mn_figure_data(
  items = c("iron", "folate", "zinc", ...),
  grouping_vars = c("state_code", "sector", "rel", ...),
  base_dir = base_dir,
  n_workers = NULL   # auto-detected
)

8.2 Adaptive Resource Management

Worker count is determined by the minimum of three constraints:

Wopt = min ( ncores−2 , RAM−4 GB 2 GB/job , njobs )

The system resource utility detects physical and logical cores, available memory, and recommends the optimal worker count.

8.3 Output File Organization

Each micronutrient gets its own directory with per-grouping-variable output files:

~/data/bam_models/micronutrient/AFE_energy/<nutrient>/
   ├── <nutrient>_data_list.RData          # Raw intake data
   ├── <nutrient>_model.RData              # Fitted hurdle models (6 per round)
   ├── data_mn_intake_<nutrient>_sector.RData
   ├── data_mn_intake_<nutrient>_rel.RData
   ├── data_mn_intake_<nutrient>_social.RData
   └── ... (7 grouping variables)

Each output file contains summary statistics (mean, median, 95% CI) for all model variants, ready for visualization.

9. Visualization

9.1 Plot Structure

Figures display micronutrient intake (or inadequacy prevalence) across expenditure deciles, stratified by demographic group. Each plot contains:

For state-level comparisons, states are grouped by geographic region (Northern, Southern, Eastern, Western, North-Eastern, Central), each rendered as a separate panel.

9.2 Output Formats

Plots are produced as:

Glossary

Term Definition
AFE (Adult Female Equivalent) Household size measure scaled by ICMR-NIN age-sex-specific requirements; converts each member to equivalent adult females
BAM mgcv::bam() — Bayesian Additive Model for large datasets; uses fast REML and discretized covariates
Coefficient of Variation (CV) SE / mean; used to convert standard errors to the log scale (σlog = CV)
Delta Method Approximation for the variance of a transformed variable: Var(g(θ)) ≈ [g′(θ)]2 Var(θ)
EAR Estimated Average Requirement — the median nutrient requirement; intake below EAR indicates a >50% probability of inadequacy. In this analysis, person-specific EAR values from ICMR-NIN are used for each household member's age-sex profile
Nutrient Density (per 1,000 kcal) The reported nutrient divided by the household’s own recorded energy, Y / (kcal/1000) — how nutrient-rich the diet is, independent of quantity. This is the “adjusted” basis actually reported (not a rescaled intake). Follows the FAO nutrient density framework (1998) and Vossenaar et al. (2020)
Factor-Smooth Interaction bs = "fs" in mgcv — allows each level of a factor to have its own smooth curve of a continuous predictor, with a shared penalty
fREML Fast Restricted Maximum Likelihood — efficient method for estimating smoothing parameters in large-sample GAMs
Geographic Standardization Holding the geographic (state/region/sector) distribution constant across comparison groups to isolate focal effects
Hurdle Model Two-part model: (1) probability of positive outcome, (2) distribution of positive values; allows structural zeros
ICMR-NIN Indian Council of Medical Research – National Institute of Nutrition; source of dietary requirements and food composition data
Inadequacy Prevalence Average probability across household members that individual intake falls below person-specific requirements; uses age-sex-specific EAR/RDA from ICMR-NIN for each member, with normal distribution (or log-normal for iron in menstruating females)
Intra-Household Allocation Distribution of household-level intake to individual members in proportion to their energy requirements (Smith & Subandoro, 2007)
lpmatrix Linear predictor matrix X such that η = Xβ; enables vectorized computation of predictions across all simulation draws
Mean-Preserving Noise Multiplicative noise exp(ε − 0.5σ2) with E[·] = 1; injects variance without shifting the mean
Posterior Predictive Draw Simulated observation combining parameter uncertainty (coefficient draws) with observation-level variability (distributional draws)
Prediction Grid Counterfactual population with standardized non-focal variables; used to compute comparable group-level estimates
RDA Recommended Dietary Allowance — nutrient intake sufficient for 97.5% of individuals; equals EAR + 2 × σreq (this analysis uses 2 rather than 1.96)
Critical density A member’s nutrient requirement expressed per 1,000 kcal, EARj / (Ereqj/1000). On the density basis inadequacy compares the household density to this threshold — no intake is rescaled
Shannon Diversity Index H = −Σ pj ln(pj); measures evenness of micronutrient sources across food categories

Data Sources

Source Description
HCES 2011–12 Household Consumer Expenditure Survey, NSS 68th Round (NSSO)
HCES 2023–24 Household Consumer Expenditure Survey (MoSPI)
ICMR-NIN Requirements Nutrient requirements (EAR, RDA) by age-sex profile, from nin_requirements.dta; provides person-specific EAR and RDA for each micronutrient across all demographic profiles
Household Demographic Roster Individual-level records of household members with age, sex, physiological profile, and ICMR-NIN energy requirements; from HCES20XX_AFE.RData
Food Composition Tables Micronutrient content per food item, from ICMR-NIN Indian Food Composition Tables
General Price Index State-level price deflators for converting nominal MPCE to constant 2023–24 prices

References

[1] Wood, S.N. (2017). Generalized Additive Models: An Introduction with R (2nd ed.). Chapman and Hall/CRC.
[2] Cragg, J.G. (1971). Some statistical models for limited dependent variables with application to the demand for durable goods. Econometrica, 39(5), 829–844.
[3] ICMR-NIN (2024). Recommended Dietary Allowances and Estimated Average Requirements for Indians. Indian Council of Medical Research – National Institute of Nutrition, Hyderabad.
[4] Longvah, T., Ananthan, R., Bhaskarachary, K. & Venkaiah, K. (2017). Indian Food Composition Tables. National Institute of Nutrition, Hyderabad.
[5] Vijayakumar, A., Dubasi, H.B., Awasthi, A. & Jaacks, L.M. (2024). Development of an Indian Food Composition Database. Current Developments in Nutrition, 8(7), 103790.
[6] Shannon, C.E. (1948). A mathematical theory of communication. The Bell System Technical Journal, 27(3), 379–423.
[7] Mullahy, J. (1998). Much ado about two: reconsidering retransformation and the two-part model in health econometrics. Journal of Health Economics, 17(3), 247–281.
[8] Gelman, A. (2006). Multilevel (hierarchical) modeling: What it can and can't do. Technometrics, 48(3), 432–435.
[9] Wood, S.N., Goude, Y. & Shaw, S. (2015). Generalized additive models for large data sets. Journal of the Royal Statistical Society: Series C, 64(1), 139–155.
[10] Li, R. & Shively, T.S. (2008). Variable selection in semiparametric regression modeling. Annals of Statistics, 36(1), 261–286.
[11] Institute of Medicine (2000). Dietary Reference Intakes: Applications in Dietary Assessment. National Academies Press. The EAR cut-point method assumes that the intake distribution and the requirement distribution are independent, and that the requirement distribution is approximately symmetric.
[12] Beaton, G.H. (1994). Criteria of an adequate diet. In M.E. Shils, J.A. Olson & M. Shike (Eds.), Modern Nutrition in Health and Disease (8th ed., pp. 1491–1505). Lea & Febiger.
[13] FAO/WHO (1998). Preparation and Use of Food-Based Dietary Guidelines. WHO Technical Report Series No. 880. Expresses nutrient requirements as densities per 1,000 kcal to define compositional adequacy of diets assuming sufficient energy is consumed.
[14] Vossenaar, M., Doak, C.M., et al. (2020). Nutrient Density as a Dimension of Dietary Quality: Findings of the Nutrient Density Approach in a Multi-Center Evaluation. Nutrients, 12(6), 1792. Formalizes the "critical nutrient density" framework: nutrient requirement / energy requirement.
[15] Institute of Medicine (2001). Dietary Reference Intakes for Vitamin A, Vitamin K, Arsenic, Boron, Chromium, Copper, Iodine, Iron, Manganese, Molybdenum, Nickel, Silicon, Vanadium, and Zinc. National Academies Press. Documents the log-normal distribution of iron requirements for menstruating women.
[16] Smith, L.C. & Subandoro, A. (2007). Measuring Food Security Using Household Expenditure Surveys. Food Security in Practice Technical Guide Series No. 3. International Food Policy Research Institute (IFPRI). Proportional allocation of household intake to members based on energy requirement shares.
[17] Smithson, M. & Verkuilen, J. (2006). A better lemon squeezer? Maximum-likelihood regression with beta-distributed dependent variables. Psychological Methods, 11(1), 54–71.