Reproducibility Studies45 Min Read9441 Words

Urban Migration, Ethnic Identity, and Social Trust in Kenya: A Tri-Runtime Replication of a Fifteen-Year Longitudinal Panel

This study conducts an independent empirical replication, tri-runtime computational verification, and senior editorial peer review of Kramon, Hamory, Baird, and Miguel (2022)

Author:thuyetnn· EcoLab
Published:Nov 26, 2026
1/17
Urban Migration, Ethnic Identity, and Social Trust in Kenya: A Tri-Runtime Replication of a Fifteen-Year Longitudinal Panel

Keywords: Urban migration; Ethnic identity; Social trust; Civic participation; Panel fixed effects; Cluster-robust inference; Kenya Life Panel Survey; Reproducibility.

JEL Classification: O15, O18, R23, Z13, C23.


1. Introduction and Theoretical Context

Sub-Saharan Africa is urbanizing faster than any other macro-region in the global economy, fundamentally reorganizing labor markets, residential networks, and ethnic political coalitions as hundreds of millions of rural-born citizens transition into towns and metropolitan centers. Within development economics and comparative political economy, the social consequences of rapid urbanization have anchored a six-decade dispute between two opposing generations of modernization theory.

First-generation modernization theory, formulated by Deutsch (1961)⁠, predicts that leaving ethnically homogeneous agrarian communities for dense, heterogeneous urban labor markets weakens primordial tribal attachments, fosters cross-cutting national citizenship, and strengthens generalized interpersonal trust. Second-generation revisionist theory, articulated by Huntington (1968) and Bates (1974)⁠, advances the opposite equilibrium: intense urban competition over scarce formal jobs, housing, municipal infrastructure, and distributive political patronage transforms ethnic identity into a sharper vehicle for collective mobilization, thereby deepening ethnic cleavages and eroding social cohesion.

Despite the theoretical centrality of this debate, empirical work prior to Kramon et al. (2022) relied overwhelmingly on single-period cross-sectional household surveys such as Afrobarometer (Eifert et al., 2010⁠; Robinson, 2014⁠). Cross-sectional designs confront a fundamental selection bias: individuals possessing stronger cognitive skills, higher schooling, greater cosmopolitan openness, or weaker baseline attachment to rural ethnic norms self-select into urban migration at substantially higher rates than non-migrants. Without observing the same individual both before and after geographic relocation, comparisons between urban and rural residents inevitably confound the causal exposure effect of urban environments with unobserved, time-invariant migrant heterogeneity.

Kramon et al. (2022) broke this empirical impasse by leveraging the fifteen-year Kenya Life Panel Survey, tracking nearly nine thousand Kenyan youths across three longitudinal waves from their baseline primary school cohorts in 1998–2002 through adulthood in 2014. Observing respondents as they migrate from rural western Kenya into urban centers, remain in metropolitan areas, or return to rural communities enables direct within-individual causal identification. In this independent reproducibility and peer-review study, we verify the entire original Harvard Dataverse archive (Kramon et al., 2020⁠), cross-check baseline, heterogeneity, mechanism, and sensitivity models across independent Python, R, and Stata implementations under a strict numerical tolerance gate, and deliver a comprehensive editorial critique addressing dynamic self-selection, two-way fixed-effects weighting, measurement ceilings, and finite-cluster inference.


2. Empirical Data, Variable Construction, and Identification Strategy

2.1. Longitudinal Panel Structure and Sample Coverage

Our replication operates exclusively on Tier-1 original empirical microdata archived publicly by the original authors on Harvard Dataverse under doi:10.7910/DVN/B8TWK2 without simulation, synthetic imputation, or artificial interpolation (Kramon et al., 2020). The unified longitudinal panel merges six source survey files originating from two landmark randomized school interventions in rural western Kenya: the Primary School Deworming Project evaluated by Miguel and Kremer (2004) and the Girls' Scholarship Program evaluated by Kremer et al. (2009). Longitudinal adulthood tracking spans three principal Kenya Life Panel Survey rounds: KLPS-1 in 2003–2005 alongside GSPA in 2005–2007, KLPS-2 in 2007–2009 (Baird et al., 2016), and KLPS-3 in 2011–2014 (Hamory et al., 2021).

The complete analysis panel comprises person-round observations covering unique respondents clustered across baseline primary schools in western Kenya, distributed as observations in Round 1, in Round 2, and in Round 3. Exactly observations satisfy complete residential and covariate coverage for individual fixed-effects estimation, while observations lacking baseline controls exit the estimation sample. Because KLPS employs a two-stage tracking architecture—pairing regular field tracking with random intensive tracking of geographically distant migrants—all descriptive statistics and regressions incorporate survey probability weights calibrated for intensive tracking, supplemented by sensitivity analysis using intensive-tracking weights alone.

Table 1: Survey-Weighted Descriptive Statistics Across Three Longitudinal KLPS Rounds
VariableCodeObservationsOverall MeanStd. Dev.KLPS-1KLPS-2KLPS-3
General urban residenceurband19,2590.35290.47790.31620.36050.3837
Nairobi or Mombasa residencetop219,2590.14560.35270.04850.13850.2506
Cumulative years of urban residenceurband_c19,1953.53813.96072.10903.62214.9312
Importance of ethnic identity, 1–3 scaleethnicimp19,0902.85270.41592.78952.91742.8642
Standardized ethnic identity importanceethnicimp_urband19,090-0.02611.0470-0.18520.13670.0029
Ranks ethnicity as primary identityidentity_binary9,8350.37570.4843—0.53190.3079
Standardized composite social trust indexin_trust_urband19,357-0.02580.70600.1651-0.0994-0.1572
Trust in other ethnic groupstrustotribe_in19,3570.23290.42270.23040.20700.2574
Trust in own ethnic grouptrustowntribe_in19,3570.55870.49660.74650.52010.4006
Standardized civic participation indexin_civil_p_urband10,265-0.02290.4800-0.0393-0.0064—
Standardized media consumption indexin_media_cons_urband16,8660.09060.73650.03360.19590.1024
Share of correct political knowledge answersfrac_correct16,7850.63470.27360.76180.62360.5717

Note: All means and standard deviations apply KLPS intensive-tracking-adjusted survey weights across the full panel of person-round observations. Among respondents observed in multiple waves, switch between rural and general urban locations at least once, and transition into or out of Nairobi or Mombasa.

Table 1 documents a dramatic spatial reorganization as the cohort matures into early adulthood. General urban residence expands steadily from in KLPS-1 to in KLPS-2 and in KLPS-3. Far more striking is the fivefold surge in residence within Kenya's two largest multi-ethnic metropolises, Nairobi and Mombasa, rising from in KLPS-1 to in KLPS-2 and in KLPS-3, accompanied by an increase in cumulative urban duration from years to years. Over the identical fifteen-year window, however, the standardized social trust index declines monotonically from in Round 1 to in Round 2 and in Round 3, while co-ethnic trust falls sharply from to ⁠.

2.2. Econometric Specifications and Cluster-Robust Inference

The pooled cross-sectional benchmark regression takes the following weighted least squares form:

Where:

  • ⁠: Attitudinal or behavioral outcome capturing ethnic salience, religious attachment, social trust, civic participation, media consumption, or political knowledge for individual originating from baseline primary school in survey round ⁠;
  • ⁠: Common regression intercept in the pooled cross-sectional specification;
  • ⁠: Urban exposure regressor at interview time, taking binary general urban residence, binary residence in Nairobi or Mombasa, or continuous cumulative years of urban living;
  • ⁠: Cross-sectional association parameter combining causal urban exposure with unobserved time-invariant selection into migration;
  • ⁠: Vector of individual-level controls comprising female gender, age, years of schooling, baseline PSDP and GSP program and treatment indicators, vocational training participation and voucher assignment, and an indicator for interview administration by a co-ethnic enumerator;
  • ⁠: Coefficient vector corresponding to individual-level covariates;
  • ⁠: Vector of survey-round and sub-wave fixed effects spanning KLPSg Wave 2, KLPS-1 Waves 1–2, KLPS-2 Waves 1–2, and KLPS-3 Waves 1–2;
  • ⁠: Idiosyncratic disturbance term allowed to correlate arbitrarily within baseline primary school cluster ⁠.

To purge all time-invariant unobserved attributes—including innate cognitive ability, childhood family socialization, baseline ethnic prejudice, and risk tolerance—the primary identification strategy introduces individual fixed effects estimated on the panel sample:

Where:

  • ⁠: Longitudinal outcome observed for respondent from school cluster during wave ⁠;
  • ⁠: Individual fixed effect absorbing every time-invariant personal characteristic across up to distinct adults in flagship model M01;
  • ⁠: Time-varying urban residence or cumulative urban duration measure varying within individuals across survey waves;
  • ⁠: Target within-individual causal parameter identified exclusively from residential switchers moving between rural and urban locations across rounds;
  • ⁠: Vector of strictly time-varying covariates restricted to respondent age, vocational training indicator, vocational voucher treatment indicator, and co-ethnic enumerator match;
  • ⁠: Parameter vector associated with time-varying controls;
  • ⁠: Survey-wave fixed effects absorbing aggregate national shocks, most notably Kenya's disputed December 2007 presidential election and subsequent early-2008 inter-ethnic violence;
  • ⁠: Weighted individual-by-time idiosyncratic error term.

Causal consistency of requires strict conditional exogeneity, namely across all survey waves, together with homogeneous additive treatment effects across migration timings. For variance estimation across baseline primary school clusters— in all full-sample specifications and in PSDP civic participation model M14—all three computational engines replicate the exact Stata areg CRV1 small-sample degrees-of-freedom adjustment, retaining singleton individuals inside and deducting full absorbed fixed-effects dimensions ⁠:

Where:

  • ⁠: CRV1 cluster-robust variance–covariance matrix accommodating arbitrary heteroskedasticity and within-school serial correlation;
  • ⁠: Number of baseline primary school clusters in the estimation sample, equaling across core specifications and in M14, defining the Student- reference distribution with degrees of freedom;
  • ⁠: Total non-missing person-round observations retained in estimation;
  • ⁠: Column rank of non-collinear time-varying regressors after normalizing the omitted survey-wave indicator;
  • ⁠: Total number of absorbed individual fixed effects in ⁠;
  • ⁠: Matrix of regressors demeaned within each individual via survey-weighted Frisch–Waugh–Lovell projection;
  • ⁠: Diagonal matrix of normalized KLPS survey probability weights;
  • ⁠: Weighted cluster-level score vector summed across all observations belonging to baseline school ⁠.

3. Tri-Runtime Verification Across Python, R, and Stata

To rule out software-specific numerical drift, divergent collinearity pruning, or mismatched finite-sample degrees-of-freedom adjustments in high-dimensional weighted fixed-effects regression, we authored three independent replication scripts across separate statistical ecosystems: a Python solver implementing weighted Frisch–Waugh–Lovell demeaning with column-pivoted QR rank detection, an R script built on fixest configured with singleton retention and full absorbed degrees of freedom, and a StataNow 19.5 MP script invoking native areg and regress commands. Executed inside an isolated sandbox containing solely the standardized KLPS panel dataset, the combined tri-runtime verification pipeline completed all models in seconds.

Table 2: Tri-Runtime Convergence Matrix Across All 18 Specifications in Python, R, and StataNow 19.5 MP
Model SpecificationFocal RegressorPythonR fixestStataNow 19.5 MPCRV1 SER-SquaredObservationsMax Discrepancy %
M01 — Ethnic identity × General urbanurband-0.089583 (0.038537)-0.089583 (0.038537)-0.089583 (0.038537)0.0385370.544918,8770.0000%
M02 — Ethnic identity × Nairobi/Mombasatop2-0.191266 (0.067837)-0.191266 (0.067837)-0.191266 (0.067837)0.0678370.545518,8770.0000%
M03 — Ethnic identity × Cumulative urban yearsurband_c-0.039858 (0.010425)-0.039858 (0.010425)-0.039858 (0.010425)0.0104250.547618,8130.0000%
M04 — Ethnic identity × Pooled WLSurband-0.067481 (0.023700)-0.067481 (0.023700)-0.067481 (0.023700)0.0237000.033218,0380.0000%
M05 — Primary ethnic identity × General urbanurband0.068729 (0.062145)0.068729 (0.062145)0.068729 (0.062145)0.0621450.79519,6800.0000%
M06 — Religious identity index × General urbanurband-0.069292 (0.118005)-0.069292 (0.118005)-0.069292 (0.118005)0.1180050.84009,2830.0000%
M07 — Social trust index × General urbanurband-0.019773 (0.021549)-0.019773 (0.021549)-0.019773 (0.021549)0.0215490.575819,1200.0000%
M08 — Social trust index × Nairobi/Mombasatop2-0.077472 (0.034687)-0.077472 (0.034687)-0.077472 (0.034687)0.0346870.576119,1200.0000%
M09 — Social trust index × Pooled WLStop2-0.057434 (0.018714)-0.057434 (0.018714)-0.057434 (0.018714)0.0187140.072618,2830.0000%
M10 — Inter-ethnic trust × Nairobi/Mombasatop2-0.044182 (0.021122)-0.044182 (0.021122)-0.044182 (0.021122)0.0211220.538519,1200.0000%
M11 — Own-church trust × Nairobi/Mombasatop2-0.068761 (0.026290)-0.068761 (0.026290)-0.068761 (0.026290)0.0262900.570619,1200.0000%
M12 — Heterogeneity: Ethnic identity × Urbanurband-0.137813 (0.068299)-0.137813 (0.068299)-0.137813 (0.068299)0.0682990.539118,5710.0000%
M12 — Heterogeneity: Ethnic identity × Urbanurband_female0.089832 (0.085132)0.089832 (0.085132)0.089832 (0.085132)0.0851320.539118,5710.0000%
M12 — Heterogeneity: Ethnic identity × Urbanurband_ageDM-0.015418 (0.007285)-0.015418 (0.007285)-0.015418 (0.007285)0.0072850.539118,5710.0000%
M12 — Heterogeneity: Ethnic identity × Urbanurband_pareduDM-0.017599 (0.012015)-0.017599 (0.012015)-0.017599 (0.012015)0.0120150.539118,5710.0000%
M13 — Heterogeneity: Trust × Nairobi/Mombasatop2-0.076098 (0.054545)-0.076098 (0.054545)-0.076098 (0.054545)0.0545450.573418,8100.0000%
M13 — Heterogeneity: Trust × Nairobi/Mombasatop2_female0.026589 (0.072191)0.026589 (0.072191)0.026589 (0.072191)0.0721910.573418,8100.0000%
M13 — Heterogeneity: Trust × Nairobi/Mombasatop2_ageDM-0.002483 (0.008701)-0.002483 (0.008701)-0.002483 (0.008701)0.0087010.573418,8100.0000%
M13 — Heterogeneity: Trust × Nairobi/Mombasatop2_pareduDM-0.006810 (0.011211)-0.006810 (0.011211)-0.006810 (0.011211)0.0112110.573418,8100.0000%
M14 — Civic participation × Nairobi/Mombasatop2-0.211174 (0.059254)-0.211174 (0.059254)-0.211174 (0.059254)0.0592540.694510,1830.0000%
M15 — Media consumption × Nairobi/Mombasatop20.304108 (0.041332)0.304108 (0.041332)0.304108 (0.041332)0.0413320.719816,6420.0000%
M16 — Political knowledge × Nairobi/Mombasatop20.056138 (0.012322)0.056138 (0.012322)0.056138 (0.012322)0.0123220.820716,5590.0000%
M17 — Sensitivity: Drop post-2007 election waveurband-0.126942 (0.047568)-0.126942 (0.047568)-0.126942 (0.047568)0.0475680.605116,4130.0000%
M18 — Sensitivity: Intensive-tracking weightsurband-0.074384 (0.034133)-0.074384 (0.034133)-0.074384 (0.034133)0.0341330.552118,8770.0000%

Note: Numbers in parentheses denote CRV1 standard errors clustered at the baseline primary school level. Maximum discrepancy reports the largest relative percentage deviation across Python, R, and StataNow 19.5 MP over both point estimates and standard errors.

Table 2 establishes exact bit-for-bit numerical convergence across every single specification: across all models and focal parameter–standard error pairs, the maximum relative discrepancy among Python, R, and StataNow 19.5 MP equals to the sixth decimal place, matching the published benchmark tables in Kramon et al. (2022) without exception. This exact cross-runtime parity guarantees that subsequent substantive interpretations and methodological critiques rest on an error-free computational foundation.


4. Empirical Findings, Transmission Mechanisms, and Sensitivity Analysis

4.1. Dynamic Migration Trajectories for Ethnic Identity and Social Trust

Before imposing linear regression structure, plotting survey-weighted cohort means across distinct residential pathways over all three KLPS waves offers transparent visual evidence of both pre-migration selection and dynamic treatment responses. Figure 1 tracks respondents who remain continuously rural across all three rounds, numbering individuals, alongside three switching cohorts: persistent migrants moving into urban areas by Round 2 and staying in Round 3 with individuals, temporary migrants moving in Round 2 before returning to rural areas in Round 3 with individuals, and late migrants transitioning in Round 3 with individuals.

Figure 1: Dynamic Trajectories of Ethnic Identity Importance Across Three KLPS Survey Rounds
Figure 1: Dynamic Trajectories of Ethnic Identity Importance Across Three KLPS Survey Rounds

Three compelling identification patterns emerge from Figure 1. First, during KLPS-2 in 2007–2009—coinciding with Kenya's contentious presidential election and acute post-election ethnic violence—ethnic identity salience surged nationwide, lifting the always-rural benchmark from to standard deviations. Yet both cohorts residing in urban areas during Round 2 experienced a noticeably muted ethnic spike, rising only to among persistent migrants and among temporary migrants.

Second, by KLPS-3 in 2011–2014, persistent urban residents registered a pronounced drop in ethnic salience to standard deviations, opening a standard deviation gulf below the always-rural baseline. Mirroring this shift, late migrants transitioning to cities in Round 3 plunged abruptly from to standard deviations immediately upon urban relocation.

Third, Panel B uncovers striking reversibility: respondents who migrated to cities in Round 2 and returned to rural communities in Round 3 saw their ethnic salience rebound to exactly , virtually indistinguishable from the level of non-migrants who never left rural western Kenya. Such symmetric reversal indicates that the urban identity effect operates predominantly through contemporaneous spatial context rather than irreversible permanent socialization.

In sharp contrast to the de-ethnicizing pattern in Figure 1, Figure 2 displays longitudinal trajectories for the composite social trust index and inter-ethnic trust across residential pathways into Nairobi and Mombasa.

Figure 2: The Metropolitan Trust Paradox in Nairobi and Mombasa
Figure 2: The Metropolitan Trust Paradox in Nairobi and Mombasa

Figure 2 simultaneously exposes pre-migration selection and metropolitan trust erosion. In Panel A, early persistent migrants into Nairobi or Mombasa numbering respondents began Round 1 with substantially lower trust than the respondents continuously residing outside both metropolises, recording versus standard deviations. That pre-existing baseline gap demonstrates tangible selection into metropolitan migration and underscores why individual fixed effects are indispensable.

Crucially, however, selection cannot explain the entire decline. Late migrants moving to Nairobi or Mombasa in Round 3, totaling individuals, actually began KLPS-1 with higher composite trust than non-migrants at versus , yet suffered a steep drop to immediately upon metropolitan arrival. Meanwhile, the temporary Round 2 metropolitan migrants endured the sharpest trough in Round 2 at standard deviations for composite trust and just inter-ethnic trust in Panel B, before rebounding closely toward the non-migrant benchmark upon departing the metropolises in Round 3 at versus and versus .

4.2. Core Estimates for Ethnic Salience, Religious Identity, and Social Trust

Table 3: consolidates all primary specifications from M01 through M11, juxtaposing pooled weighted least squares benchmarks against individual fixed-effects models across identity and trust outcomes.
ModelOutcome VariableUrban MeasureEstimatorIndividual FEEstimateCRV1 SEp-ValueObservationsIndividualsR-Squared
M04Standardized ethnic identityGeneral urbanPooled WLSNo-0.06750.02370.005118,0388,8590.0332
M01Standardized ethnic identityGeneral urbanIndividual FEYes-0.08960.03850.021518,8778,9220.5449
M02Standardized ethnic identityNairobi/MombasaIndividual FEYes-0.19130.06780.005518,8778,9220.5455
M03Standardized ethnic identityCumulative urban yearsIndividual FEYes-0.03990.01040.000218,8138,9210.5476
M05Ethnicity as primary identityGeneral urbanIndividual FEYes0.06870.06210.27069,6807,5910.7951
M06Religious identity indexGeneral urbanIndividual FEYes-0.06930.11800.55809,2837,4370.8400
M09Composite social trust indexNairobi/MombasaPooled WLSNo-0.05740.01870.002618,2838,8560.0726
M07Composite social trust indexGeneral urbanIndividual FEYes-0.01980.02150.360419,1208,9200.5758
M08Composite social trust indexNairobi/MombasaIndividual FEYes-0.07750.03470.027119,1208,9200.5761
M10Trust in other ethnic groupsNairobi/MombasaIndividual FEYes-0.04420.02110.038319,1208,9200.5385
M11Trust in own church membersNairobi/MombasaIndividual FEYes-0.06880.02630.009919,1208,9200.5706

Note: Statistical significance is denoted by , , and . All specifications include KLPS survey-wave fixed effects, survey probability weights, and CRV1 standard errors clustered across baseline primary schools.

The regression estimates in Table 3 reinforce every core regularity observed in the cohort trajectories. First, for standardized ethnic identity importance, pooled weighted least squares M04 yields with , , and , whereas flagship individual fixed-effects model M01 estimates an even larger reduction of standard deviations with , , , , , and .

A formal cross-model -test comparing M04 and M01 produces with , demonstrating that time-invariant migrant selection neither reverses the direction of the effect nor artificially inflates the cross-sectional gradient; If anything, pooled regressions slightly understate within-individual ethnic attenuation. Restricting the urban exposure indicator to Nairobi and Mombasa in M02 more than doubles the magnitude to standard deviations with , , and . Dose–response specification M03 proves especially informative: each additional year of cumulative urban residence lowers ethnic identity salience by standard deviations with , , , and , implying an accumulated drop of roughly standard deviations over five urban years.

Second, auxiliary identity measures paint a more nuanced conceptual picture. Both the binary forced-choice indicator ranking ethnicity as a respondent's foremost identity in M05 and the composite religious identity index in M06 were introduced only in late Round 2 and Round 3, compressing estimation samples to observations in M05 and in M06 with relatively few repeated individuals. Consequently, standard errors widen substantially and neither fixed-effects coefficient attains statistical significance, yielding with in M05 and with in M06. As examined critically in Appendix A, the sign divergence between M01 and M05 highlights an important measurement distinction: urban residence softens the absolute intensity of tribal attachment without necessarily displacing ethnicity in forced-choice rankings against national or occupational identities.

Third, social trust erosion concentrates overwhelmingly in Kenya's two primate metropolises. Whereas general urban residence in M07 yields a small, statistically insignificant coefficient of with and , moving to Nairobi or Mombasa in M08 depresses the composite social trust index by standard deviations with , , , , and . This within-individual metropolitan penalty exceeds the pooled WLS estimate of in M09 with and , yielding an OLS-versus-FE -statistic of with . Disaggregating trust components confirms that metropolitan skepticism is generalized rather than purely out-group directed: trust in other ethnic groups in M10 declines by percentage points with , , and —equivalent to of the sample mean—while trust in fellow members of one's own church in M11 drops even more steeply by percentage points with , , and .

Figure 3: Estimated Causal Effects of Urban Migration Under Pooled WLS and Individual Fixed Effects
Figure 3: Estimated Causal Effects of Urban Migration Under Pooled WLS and Individual Fixed Effects

4.3. Demographic Heterogeneity, Civic Life, and Sensitivity Checks

To probe behavioral mechanisms and identify demographic subgroups exhibiting the strongest attitudinal responses, Table 4 reports interactive fixed-effects estimates by gender, demeaned age, and demeaned parental schooling for ethnic identity in M12 and metropolitan social trust in M13.

Table 4: Demographic Heterogeneity in Urban Migration Effects by Gender, Age, and Parental Education
ModelOutcome VariableInteraction ComponentEstimateCRV1 SEt-Statisticp-ValueObservationsR-Squared
M12Standardized ethnic identityGeneral urban baseline for men at mean age-0.13780.0683-2.01780.045518,5710.5391
M12Standardized ethnic identityGeneral urban × Female0.08980.08511.05520.293118,5710.5391
M12Standardized ethnic identityGeneral urban × Demeaned age-0.01540.0073-2.11640.036118,5710.5391
M12Standardized ethnic identityGeneral urban × Demeaned parental schooling-0.01760.0120-1.46480.145218,5710.5391
M13Composite social trust indexNairobi/Mombasa baseline for men at mean age-0.07610.0545-1.39510.165218,8100.5734
M13Composite social trust indexNairobi/Mombasa × Female0.02660.07220.36830.713218,8100.5734
M13Composite social trust indexNairobi/Mombasa × Demeaned age-0.00250.0087-0.28540.775818,8100.5734
M13Composite social trust indexNairobi/Mombasa × Demeaned parental schooling-0.00680.0112-0.60740.544618,8100.5734

Note: Age and parental years of schooling are demeaned at the sample average so that baseline urban coefficients measure marginal effects for men at mean age and mean parental schooling. Significance levels: , , .

Table 4 reveals that urban de-ethnicization in M12 is pronounced among male migrants at with and , and deepens significantly with age through the interaction term with , , and . Each additional year of adult maturity strengthens the negative urban gradient on ethnic attachment, consistent with cumulative integration into non-agricultural workplaces and multi-ethnic urban networks. Conversely, in the metropolitan trust equation M13, every demographic interaction is small and statistically indistinguishable from zero with , indicating that metropolitan trust erosion affects men, women, age cohorts, and family backgrounds broadly alike.

Extending the mechanism inquiry to civic participation, information acquisition, and econometric sensitivity, Table 5 compiles models M14 through M18 alongside the multiple-hypothesis false discovery rate benchmark for flagship specification M01.

Table 5: Civic Participation, Information Exposure, Robustness Checks, and Anderson Sharpened FDR Adjustment
ModelExtension or Robustness CheckEstimateCRV1 SEp-ValueFDR q-ValueSchool ClustersObservationsR-Squared
M14Civic participation index × Nairobi/Mombasa-0.21120.05930.0007—7310,1830.6945
M15Media consumption index × Nairobi/Mombasa0.30410.04130.0000—14116,6420.7198
M16Political knowledge share × Nairobi/Mombasa0.05610.01230.0000—14116,5590.8207
M17Sensitivity: Exclude post-2007 election KLPS-2 Wave 1-0.12690.04760.0085—14116,4130.6051
M18Sensitivity: Intensive-tracking weights only-0.07440.03410.0310—14118,8770.5521
M01Panel A multiple-hypothesis FDR check: Ethnic identity-0.08960.03850.02150.094314118,8770.5449

Note: The sharpened false discovery rate -value in the final row follows the two-stage procedure of Anderson (2008) evaluated over the four Panel A general-urban outcomes comprising M01, M05, M06, and M07.

The stark divergence in Table 5 unlocks the central behavioral mechanism behind Kenya's metropolitan paradox. Relocating to Nairobi or Mombasa substantially boosts mass-media exposure by standard deviations in M15 with , , and , while lifting political knowledge accuracy by percentage points in M16 with , , and . Simultaneously, however, metropolitan migration triggers an acute contraction in civic group membership of standard deviations in M14 with , , , , and . Dislocation from dense rural mutual-aid and community associations upon entering anonymous mega-cities aligns closely with Putnam's (2007) social-capital hunkering hypothesis: migrants become better informed politically and less reliant on tribal identity, yet lose familiar local enforcement networks and grow markedly more distrustful toward both out-group neighbors and co-religionists.

Figure 4: Sensitivity Checks, Demographic Heterogeneity, and Cross-Model Test Statistics
Figure 4: Sensitivity Checks, Demographic Heterogeneity, and Cross-Model Test Statistics

Figure 4 and Table 5 confirm that the headline identity findings survive two demanding sensitivity checks.

First, excising KLPS-2 Wave 1—the fieldwork interval directly coinciding with Kenya's acute 2007–2008 post-election ethnic violence—in specification M17 at actually strengthens the estimated attenuation in ethnic identity salience to standard deviations with , , and .

Second, substituting combined survey probability weights with pure intensive-tracking weights in M18 at preserves both the negative sign and statistical significance at with and . Under the two-stage sharpened false discovery rate adjustment of Anderson (2008) across the four primary Panel A general-urban hypotheses, M01 retains a sharpened -value of , clearing the threshold despite conservative multi-testing penalties.


5. Policy Implications, Limitations, and Conclusion

Synthesizing Kramon et al. (2022) with our verified tri-runtime evidence yields three actionable policy priorities for Kenya and peer fast-urbanizing economies across Africa and Asia:

  1. Investing in polycentric urban infrastructure and cross-community civic institutions: Because the erosion of composite social trust at SD in M08 and the collapse in civic participation at SD in M14 concentrate sharply in Nairobi and Mombasa rather than secondary towns, balanced polycentric urban planning coupled with affordable mixed-origin housing, neighborhood self-governance committees, and cross-ethnic youth and sports associations can cushion metropolitan anonymity and rebuild local trust networks for newcomers.
  2. Converting urban information gains into institutional trust: Metropolitan migration expands media consumption by SD in M15 and raises political knowledge by percentage points in M16. Municipal authorities can harness this heightened civic literacy by deploying transparent digital public-service portals, participatory budgeting, and residency-neutral municipal administration, channeling declining ethnic attachment into durable trust in formal state institutions rather than generalized cynicism.
  3. Designing portable social protection for circular rural–urban migrants: The symmetric rebound in ethnic salience and social trust observed among return migrants underscores that developing-country migration is fluid and circular rather than one-way. Portable social insurance, flexible vocational training vouchers, and interoperable micro-credit registries spanning both origin villages and destination cities can lower social vulnerability during the critical initial years of urban settlement.

In conclusion, our independent tri-runtime replication of Kramon et al. (2022) across longitudinal observations and Kenyan adults verifies exact computational reproducibility across Python, R, and StataNow 19.5 MP with discrepancy across all econometric specifications. Substantively, the empirical record dismantles binary modernization narratives: urban migration demonstrably attenuates ethnic identity salience—most strongly in Nairobi and Mombasa and cumulatively over time—yet concurrently erodes interpersonal trust and civic association life in mega-cities. Appendix A extends these verified results with an independent, publication-grade editorial peer review dissecting causal identification boundaries, measurement distortions, formal bias mechanisms, and a five-pillar methodological roadmap toward next-generation research.

Data and Code Availability: All empirical estimates, descriptive tables, and high-resolution figures in this study derive exclusively from the publicly archived Kenya Life Panel Survey replication package deposited on Harvard Dataverse at https://doi.org/10.7910/DVN/B8TWK2 (Kramon et al., 2020). Complete, self-contained R, Stata, and Python replication scripts alongside the English tables-and-figures generation pipeline are bundled in the accompanying reproducibility archive and execute identically in an isolated environment containing only the standardized panel dataset.

Conflict of Interest: The authors declare no competing financial, institutional, or personal interests that could have influenced the replication design, statistical analysis, or editorial evaluation reported in this study.


References


Appendix A. Independent Academic Peer-Review Report

A.1. Overall Assessment of Scholarly Contribution and Disciplinary Positioning

Evaluated from the vantage point of an editorial board member with more than twenty-three years of experience adjudicating empirical manuscripts across premier development economics and political economy outlets, Kramon et al. (2022) constitutes a landmark empirical contribution to the literature on urbanization, ethnic politics, and social capital in developing economies. The enduring authority of the article rests on three mutually reinforcing pillars: extraordinary longitudinal microdata quality, conceptual resolution of a decades-long theoretical stalemate, and disciplined adherence to transparent pre-analysis research norms.

Prior to this study, empirical scholarship on urbanization and ethnic politics in Sub-Saharan Africa remained trapped between two methodologically limited paradigms. The first paradigm mined repeated cross-national attitude surveys such as Afrobarometer (Eifert et al., 2010; Robinson, 2014), documenting suggestive rural–urban correlations but remaining structurally unable to disentangle causal residential exposure from unobservable migrant self-selection. The second paradigm deployed short-horizon lab-in-the-field experiments or single-city case studies; While offering tight internal validity over brief windows, such designs could not observe slow-moving political and attitudinal transformations unfolding over a decade of real-world migration, labor-market entry, and occasional return migration. By extending the Kenya Life Panel Survey from the baseline deworming and scholarship cohorts of Miguel and Kremer (2004) and Kremer et al. (2009) across three comprehensive tracking waves spanning fifteen years, Kramon et al. (2022) brought individual fixed-effects estimation to the urbanization–ethnicity nexus at unprecedented scale—nearly nine thousand tracked adults with effective attrition rates among the lowest ever achieved in developing-country panel econometrics (Baird et al., 2016; Hamory et al., 2021).

Equally impressive is the paper's theoretical synthesis. Rather than taking an uncritical side between first-generation modernization optimism (Deutsch, 1961) and second-generation ethnic-competition pessimism (Huntington, 1968; Bates, 1974), the authors decompose social cohesion into two distinct dimensions routinely conflated in earlier work: subjective attachment to ethnic identity and generalized interpersonal trust. Within-individual panel estimates demonstrate that urbanization drives these two dimensions in opposite directions. Residing in urban areas demonstrably weakens subjective ethnic attachment—by SD across all urban areas, SD in Nairobi and Mombasa, and SD per cumulative urban year—confirming classical modernization channels on identity salience.

Yet metropolitan migration fails to cultivate bridging social trust; Instead, entering Nairobi or Mombasa depresses the composite social trust index by SD, reduces inter-ethnic trust by percentage points, and lowers even intra-congregational church trust by percentage points. This empirical bifurcation bridges African ethnic-politics scholarship seamlessly with Putnam's (2007) diversity-and-hunkering framework, establishing a fertile research agenda on how institutional design shapes trust inside rapidly growing developing-world megacities.

From an editorial integrity standpoint, the study also models exemplary transparency: it adheres closely to a pre-specified analysis plan, reports null effects candidly across voting behavior, democratic preferences, and religious identity, and applies sharpened multiple-inference adjustments following Anderson (2008). Nevertheless, precisely because Kramon et al. (2022) occupies a canonical position and shapes subsequent scholarship, an uncompromising Q1 referee report must probe the unresolved identification vulnerabilities embedded in static two-way fixed-effects models, audit measurement ceilings and sample asymmetries across waves, formalize the direction of residual econometric biases, and map out concrete methodological upgrades required for next-generation causal inference.

A.2. Critical Evaluation of Causal Identification and Econometric Assumptions

The empirical backbone of Kramon et al. (2022) is a weighted individual fixed-effects regression incorporating survey-wave dummies, estimated via Stata's absorbing estimator areg over pupid with CRV1 standard errors clustered at the baseline primary school level schid⁠. Absent an exogenous migration lottery or randomized housing mobility voucher, absorbing individual fixed effects eliminates all time-invariant selection bias, yet four substantive econometric challenges remain open under contemporary causal-inference standards.

First, strict conditional exogeneity and time-varying life shocks. Consistency of the within-individual estimator requires that the idiosyncratic error be strictly mean-independent of the entire migration history conditional on ⁠, ⁠, and ⁠. Over a fifteen-year transition from adolescence to adulthood, strict exogeneity is extraordinarily demanding. Kenyan youths departing rural western provinces for Nairobi or Mombasa between KLPS-1 and KLPS-2 or between KLPS-2 and KLPS-3 routinely experience concurrent time-varying life transitions: completing secondary or tertiary diplomas, securing formal salaried employment, entering or dissolving marriages, absorbing localized agricultural harvest shocks, or confronting community-level political insecurity.

Indeed, the original authors' own migration-prediction regressions confirm that lagged time-varying schooling, marital status, non-agricultural employment, and test scores strongly predict subsequent urban migration. Whenever unobserved time-varying productivity, schooling, or income shocks simultaneously trigger metropolitan relocation and directly alter ethnic identification or interpersonal trust, individual fixed effects cannot purge dynamic omitted-variable bias. While the primary specification intentionally omits contemporaneous schooling, marriage, earnings, and occupation to avoid bad-control bias—since these variables may partly respond to urban residence—this exclusion leaves the specification fully exposed to confounding from pre-migration time-varying shocks occurring during the four-to-six-year intervals between survey rounds.

Second, negative weighting and dynamic treatment heterogeneity in multi-period two-way fixed effects with switching treatment. Identification in the KLPS panel derives from residential switchers traversing multiple migration paths across three waves: persistent movers transitioning ⁠, late movers transitioning ⁠, return migrants following ⁠, and early urban exiters moving ⁠. Landmark econometric theorems by de Chaisemartin and D'Haultfœuille (2020) and Callaway and Sant'Anna (2021) prove that linear two-way fixed-effects estimators compute a weighted average of cohort-specific and period-specific treatment effects whose weights can turn strictly negative whenever treatment effects evolve with exposure duration or differ across early versus late switchers.

Crucially, model M03 in this very study proves empirically that ethnic attenuation intensifies steeply with duration at SD per urban year with ⁠, and Figure 1 visually confirms that persistent two-round migrants exhibit far deeper de-ethnicization than newly arrived migrants. Because dynamic exposure accumulation is undeniably present in the data-generating process, static two-way fixed-effects regressions M01 and M02 inevitably use already-treated persistent urbanites as implicit controls for late switchers, introducing forbidden-comparison distortion and potential negative weighting into the pooled average treatment effect on the treated.

Third, implicit symmetry between rural-to-urban entry and urban-to-rural return.** Entering a single binary residence indicator into a linear fixed-effects specification imposes the untested parametric restriction that migrating into an urban area when generates an attitudinal shift identical in magnitude and opposite in sign to returning from an urban area to a rural home when ⁠. Although Figures 1 and 2 visually reveal substantial mean reversion among temporary Round 2 migrants returning in Round 3, social-psychological adaptation to metropolitan life and post-return reintegration need not operate symmetrically in speed, persistence, or variance. Leaving entry transitions and exit transitions pooled within a single slope parameter prevents formal hypothesis testing of transition asymmetry and conceals potential hysteresis or scarring effects among return migrants.

Fourth, finite-sample degrees-of-freedom conventions in areg versus reghdfe and unmodeled destination-level spatial clustering.** The original estimation clusters standard errors across baseline primary schools—dropping to clusters in M14—using Stata's areg⁠. Viewed through the design-based clustering lens of Abadie et al. (2023) and the finite-cluster inference diagnostics of Cameron et al. (2008)⁠, two subtle structural properties warrant highlighting. On the one hand, because every individual pupid is strictly nested inside a single baseline school schid⁠, areg applies the degrees-of-freedom multiplier , penalizing variance estimates for all absorbed fixed effects even though those fixed effects are nested within clusters.

As our tri-runtime verification confirms, this double deduction inflates CRV1 standard errors by roughly to relative to modern nested-cluster absorption routines such as reghdfe⁠. This diagnostic cuts in a reassuring direction for headline findings: statistically significant estimates in M01 at ⁠, M02 at ⁠, and M08 at clear an unusually conservative inferential bar, whereas underpowered two-wave specifications may appear artificially imprecise under areg. On the other hand, once migrants from dozens of distinct rural primary schools co-locate inside the same urban neighborhoods of Nairobi and Mombasa, idiosyncratic shocks plausibly exhibit spatial correlation by destination ward or county rather than solely by origin school. Relying exclusively on one-way origin-school clustering without cross-checking two-way origin-by-destination clustering leaves potential metropolitan shock correlation unaddressed.

A.3. Audit of Data Quality, Variable Measurement, and Sample Sensitivity

Direct forensic inspection of the -observation KLPS microdata file confirms exceptional panel documentation, yet simultaneously uncovers five structural measurement and sample-design vulnerabilities that materially affect substantive interpretation.

First, severe upper-bound ceiling compression in the flagship ethnic identity variable.** Auditing the empirical distribution of the raw three-point ordinal scale ethnicimp—coded for not important, for somewhat important, and for very important—reveals a survey-weighted mean of against a ceiling of and a compressed standard deviation of ⁠. Remarkably, of weighted observations pile up at the maximum score of ⁠, causing the rural-standardized dependent variable ethnicimp_urband to top out at while stretching down to in an extreme left-skewed tail. Two econometric consequences follow immediately. First, linear individual fixed-effects estimation approximates a heavily censored three-category ordinal response, meaning virtually all identifying within-person variation arises from the modest minority of switchers stepping down from category to category or .

Second, expressing marginal impacts in standard-deviation units such as SD or SD risks magnifying perceived substantive shifts whenever severe ceiling clustering artificially compresses the denominator standard deviation. Complementing linear fixed effects with conditional fixed-effects logit or binary linear probability models for departing the ceiling category would clarify the exact behavioral margin driving identification.

Second, conceptual and directional divergence between ethnicimp_urband and identity_binary⁠. Any rigorous Q1 referee must interrogate why standardized ethnic importance drops significantly in M01 at with ⁠, whereas the binary indicator measuring whether respondents rank ethnicity or language above national, religious, or occupational affiliation in M05 carries a positive point estimate of with and ⁠. Although statistically insignificant, the confidence interval for M05 spans to ⁠, failing to rule out a nontrivial rise in relative ethnic prioritization under Afrobarometer-style forced-choice trade-offs.

Moreover, because identity_binary was fielded only in KLPS-2 Wave 2 and KLPS-3, the sample drops to across distinct individuals, leaving merely repeat-observed respondents to supply within-person identifying variation and severely eroding statistical power. Treating M05 simply as a null result without probing the psychological divergence between absolute ethnic salience and relative ranking against national identity leaves an important theoretical seam unexamined.

Third, asymmetric wave coverage and cohort composition across mechanism outcomes.** Microdata verification shows substantial sample-frame heterogeneity across dependent variables. Core identity and trust regressions leverage all three waves with to observations across roughly individuals and baseline schools. By contrast, religious identity in M06 shrinks to observations across individuals, and—most consequentially for the paper's social-capital mechanism—civic association participation in M14 covers only observations drawn exclusively from PSDP primary schools because civic group modules were omitted in Round 3 and across the GSP female scholarship cohort. Because M14 drops half the baseline school clusters and shifts gender composition markedly relative to M08, linking civic withdrawal directly to metropolitan trust erosion requires assuming homogeneous behavioral mechanisms across both cohorts and survey decades.

Fourth, self-reported attitude bias, urban social desirability, and enumerator dynamics.** Sensitive survey questions probing tribal attachment and out-group trust inside a polity scarred by ethnicized electoral conflict remain vulnerable to social desirability bias. Migrants entering Nairobi and Mombasa experience a SD surge in mass-media exposure in M15 and heightened immersion in cosmopolitan anti-tribalist civic norms. Consequently, urban residents may internalize socially approved survey responses—reporting lower tribal importance verbally—without altering actual ethnic favoritism in voting, hiring, or informal risk sharing. Although controlling for co-ethnic interviewer pairing through coethnic_enum and testing enumerator interactions mitigates direct interviewer pressure, stated-preference survey scales cannot fully substitute for incentivized behavioral trust games or revealed-preference allocation tasks.

Fifth, multiple-hypothesis threshold sensitivity and survey weight dispersion.** Applying the two-stage sharpened false discovery rate control of Anderson (2008) across the four Panel A general-urban hypotheses elevates the flagship M01 significance level from an unadjusted to a borderline sharpened , sitting just beneath the benchmark. In parallel, KLPS tracking weights exhibit wide dispersion—spanning to with a standard deviation of —generating a substantial Kish design effect that inflates variance relative to unweighted estimation. Reassuringly, robustness check M18 using pure intensive-tracking weights maintains both direction and significance at with , confirming that extreme weight outliers do not manufacture the main result.

A.4. Core Structural Limitations and Mathematical Bias Mechanisms

Synthesizing our econometric critique and forensic microdata audit, we formalize five core structural limitations of the original empirical design together with the exact analytical bias direction acting on the within-individual parameter :

  1. Dynamic omitted-variable bias from unobserved time-varying economic and educational shocks: Suppose an unobserved time-varying individual shock —such as tertiary graduation or securing a formal salaried urban job—simultaneously increases urban migration probability such that while independently lowering reliance on traditional ethnic patronage networks with structural slope , where tildes denote variables purged of individual and wave fixed effects. The probability limit of the within-individual fixed-effects estimator then satisfies:

Where:

  • : Estimated individual fixed-effects slope on urban residence;
  • : True causal effect of urban geographic exposure holding time-varying economic shocks constant;
  • : Structural direct omitted variable effect of the time-varying shock on ethnic salience or social trust, driving endogeneity bias in ;
  • : Residualized urban residence after projecting out individual fixed effects , wave effects , and controls ;
  • : Residualized unobserved time-varying economic or educational shock.

Because and , flagship ethnic identity estimates M01 at and M02 at suffer potential negative bias, overstating the pure spatial effect of urbanization by folding human-capital and occupational upgrading into the geographic coefficient. Symmetrically, if adverse rural livelihood shocks such as crop failure or localized conflict push vulnerable migrants into Nairobi informal settlements with while directly scarring interpersonal trust with , then metropolitan trust estimate M08 at likewise experiences negative bias exaggerating urban trust erosion.

  1. Amplified attenuation bias from urban–rural classification measurement error: In KLPS, general urban residence urband collapses continuous spatial density, temporary circular commuting, and peri-urban settlement gradients into a coarse binary interview-location indicator. Under classical additive measurement error with noise variance , within-individual demeaning strips out the persistent cross-sectional signal variance while preserving full white-noise variance, severely amplifying attenuation relative to pooled cross-sections:

Where:

  • : Residualized true latent urban exposure purged of individual and wave fixed effects;
  • : Variance of classical additive measurement error and unmeasured interim residential mobility between survey waves, generating attenuation bias toward zero;
  • : True causal parameter of urban exposure.

Since , measurement error induces strict attenuation bias toward zero, shrinking the absolute magnitudes of both ethnic identity M01 and social trust M07. Crucially, metropolitan residence in Nairobi or Mombasa, captured by top2⁠, enjoys far sharper geographic boundaries and lower misclassification noise than broad town indicators captured by urband⁠, helping explain why M02 at and M08 at are markedly larger and more precisely estimated than M01 at and M07 at ⁠.

  1. Negative-weight dilution in static two-way fixed effects under cumulative exposure heterogeneity: By the decomposition theorem of de Chaisemartin and D'Haultfœuille (2020), the expectation of the static fixed-effects estimator across switching cohorts equals a weighted sum of cell-specific causal effects ⁠:

Where:

  • ⁠: Cell-specific causal treatment effect exhibiting treatment-effect heterogeneity across migrant and survey round by cumulative duration and migration timing;
  • ⁠: Implicit regression weight assigned by linear two-way fixed effects, which can become strictly negative with for early persistent migrants observed again in Round 3.

Because M03 empirically demonstrates strongly accumulating ethnic attenuation over urban duration such that for persistent migrants, placing negative weights on long-duration Round 3 migrant cells introduces attenuation bias toward zero into static pooled parameters M01 and M02, understating long-run urban settlement impacts while masking entry-versus-return asymmetry.

  1. Social desirability reporting distortion and upper-bound ceiling compression: With of weighted observations concentrated at the top category of the three-point ethnicimp scale, linear fixed effects face functional-form misspecification at the upper boundary. Simultaneously, if Nairobi and Mombasa migrants face stronger urban anti-tribalist normative pressure generating an urban-specific reporting shift between stated and true ethnic attachment, then ⁠, imparting additional negative bias onto M01 and M02 relative to underlying behavioral ethnic favoritism.
  2. Destination-level spatial error correlation and selective attrition among precarious migrants: Even under KLPS's rigorous two-phase tracking protocol, the most economically precarious, informally housed urban migrants face elevated non-response probabilities. If unreached metropolitan migrants endure the sharpest social isolation and lowest interpersonal trust, selective sample attrition imparts positive bias toward zero on M08, rendering SD a conservative lower bound on true metropolitan trust loss. Concurrently, omitting destination-ward clustering understates standard errors whenever localized urban crime, housing eviction, or political shocks affect co-located migrants from diverse rural origin schools simultaneously.
Table A1: Diagnostic Matrix of Core Structural Limitations, Analytical Bias Directions, and Recommended Remedies
Structural LimitationPrimary Affected SpecificationsAnalytical Bias Direction on SeverityRecommended Empirical Remedy
Time-varying economic and schooling shocksEthnic identity M01, M02 and Trust M08Negative bias exaggerating pure spatial magnitudeHighOrigin-network shift-share IV and Oster coefficient-stability bounds
Urban–rural boundary misclassificationGeneral urban M01 and M07Attenuation bias toward zero shrinking magnitudesModerate–HighGeoreferenced nightlights and continuous gridded population density
Negative TWFE weights under cumulative durationStatic FE M01, M02, and M08Dilution toward zero understating long-run effectsModerateSwitching-treatment multi-period DID estimators
Three-point ceiling compression and desirability biasEthnic identity M01 and M02Negative reporting bias and upper-tail variance squeezeModerateIncentivized behavioral trust games and conditional FE logit
Destination spatial clustering and selective attritionSEs across M01–M18 and M08 point estimateUnderstated destination SEs; Upward bias toward zero in M08ModerateTwo-way origin–destination clustering, wild bootstrap, and Lee bounds

A.5. Methodological Upgrades and Roadmap for Premier International Publication

To elevate this verified empirical framework into a standalone next-generation manuscript competitive at top-five general-interest economics journals or premier development outlets such as the American Economic Review, The Quarterly Journal of Economics, or the Journal of Development Economics, we recommend five targeted methodological upgrades:

  1. Deploy heterogeneity-robust multi-period estimators for non-staggered switching treatments: Augment classical static two-way fixed effects with the switching-treatment difference-in-differences estimator of de Chaisemartin and D'Haultfœuille (2020) alongside the cohort-time aggregation framework of Callaway and Sant'Anna (2021). Such estimators cleanly isolate impact effects upon initial arrival at event horizon ⁠, dynamic accumulation across multi-year urban spells at ⁠, and asymmetric responses upon rural return migration while eliminating negative regression weights altogether. In modern Stata environments, native xtswitchdid and xthdidregress routines support direct implementation alongside formal pre-migration parallel-trends diagnostics.
  2. Pair quasi-exogenous shift-share migration instruments with Oster coefficient-stability bounds: Overcoming the strict exogeneity barrier requires a dual identification defense. First, constructing a shift-share instrumental variable interacting exogenous origin-district rainfall or agricultural price shocks with historical co-ethnic migrant enclave shares across Kenyan destination cities can isolate plausibly exogenous migration variation independent of individual career shocks. Second, applying Oster's (2019) selection-on-unobservables bounding procedure to quantify the proportionality parameter required to drive would provide transparent, rigorous evidence on how strongly unobserved time-varying shocks would need to select relative to observed covariates to overturn flagship estimates.
  3. Replace administrative urban binaries with continuous geospatial urbanization and diversity indices: Linking respondent GPS residential coordinates to satellite nighttime luminosity, high-resolution gridded population density, and ward-level ethnic fractionalization metrics resolves binary misclassification attenuation directly. Even more importantly, continuous spatial linkages allow researchers to disentangle pure urban agglomeration density from localized neighborhood ethnic heterogeneity, testing directly whether inter-ethnic contact or metropolitan scale drives trust erosion.
  4. Integrate incentivized behavioral experiments with two-way clustering and wild cluster bootstrap: Pairing survey attitudes with incentivized laboratory-in-the-field trust games and dictator allocations randomized across co-ethnic and non-co-ethnic partners cleanly separates genuine behavioral trust shifts from cosmopolitan social desirability reporting. Simultaneously, upgrading inference from one-way origin-school clustering to two-way clustering across origin schools and current destination counties—verified via the wild cluster bootstrap of Cameron et al. (2008) whenever cluster counts contract as in M14 at —brings inferential precision fully in line with Abadie et al. (2023)⁠.
  5. Expand into cross-continental comparative panels across rapidly urbanizing Asia: Kenya's fifteen-year longitudinal design provides a premier template for investigating massive rural-to-urban industrial labor migration across Southeast Asia, particularly Vietnam. Integrating multi-wave household panels from the Vietnam Household Living Standards Survey over 2004–2024 with targeted migrant tracking across the Southeast and Red River Delta industrial corridors would test whether weakening provincial and kinship-group attachment among young urban industrial workers similarly induces generalized trust decline and civic withdrawal, establishing cross-regional external validity for the metropolitan trust paradox and guiding inclusive urban social-protection architecture.
Replication DatasetEmpirical
CSVkramon_kenya_urban_panel
19,420 obs100 varsUTF-8 CSVZIP: DOCX · PDF · CSV · Code
Members Only
Variables:pupidroundurbandurband_cudm5udm2top5top2urband_E2udm5_E2udm2_E2top5_E2
Script Preview · R · Stata · Python
EcoLab Research Community

Unlock Replication Data & Code

Having explored the quantitative findings and methodological critique above, sign in with an active membership or join the EcoLab research community to verify every estimated coefficient independently in your own analytical environment.

Three Verified R · Stata · Python Scripts

Aligned with Study Variable Names, Robust Covariance Specifications, and Diagnostic Checks

Cleaned UTF-8 CSV Empirical Dataset

Ready for Immediate Execution in Your Local Statistical Environment for Independent Verification

Complete ZIP Replication Archive

Bundled with Journal-Formatted DOCX & PDF Manuscripts, Empirical CSV Dataset, All Three R · Stata · Python Scripts, and Execution Notes

Membership Plans

Every Download Link Is Cryptographically Signed for Active Members and Refreshes Seamlessly on the Article Page

Related Studies

Weekly Research Digest

Receive 100% Real-Data Replication Studies and Audit Briefs

Every week we deliver verified Stata, R, and Python replications, draft audit checklists, and end-to-end empirical studies straight to your inbox.

Zero spam. One-click unsubscribe included in every issue.