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.
| Variable | Code | Observations | Overall Mean | Std. Dev. | KLPS-1 | KLPS-2 | KLPS-3 |
|---|---|---|---|---|---|---|---|
| General urban residence | urband | 19,259 | 0.3529 | 0.4779 | 0.3162 | 0.3605 | 0.3837 |
| Nairobi or Mombasa residence | top2 | 19,259 | 0.1456 | 0.3527 | 0.0485 | 0.1385 | 0.2506 |
| Cumulative years of urban residence | urband_c | 19,195 | 3.5381 | 3.9607 | 2.1090 | 3.6221 | 4.9312 |
| Importance of ethnic identity, 1–3 scale | ethnicimp | 19,090 | 2.8527 | 0.4159 | 2.7895 | 2.9174 | 2.8642 |
| Standardized ethnic identity importance | ethnicimp_urband | 19,090 | -0.0261 | 1.0470 | -0.1852 | 0.1367 | 0.0029 |
| Ranks ethnicity as primary identity | identity_binary | 9,835 | 0.3757 | 0.4843 | — | 0.5319 | 0.3079 |
| Standardized composite social trust index | in_trust_urband | 19,357 | -0.0258 | 0.7060 | 0.1651 | -0.0994 | -0.1572 |
| Trust in other ethnic groups | trustotribe_in | 19,357 | 0.2329 | 0.4227 | 0.2304 | 0.2070 | 0.2574 |
| Trust in own ethnic group | trustowntribe_in | 19,357 | 0.5587 | 0.4966 | 0.7465 | 0.5201 | 0.4006 |
| Standardized civic participation index | in_civil_p_urband | 10,265 | -0.0229 | 0.4800 | -0.0393 | -0.0064 | — |
| Standardized media consumption index | in_media_cons_urband | 16,866 | 0.0906 | 0.7365 | 0.0336 | 0.1959 | 0.1024 |
| Share of correct political knowledge answers | frac_correct | 16,785 | 0.6347 | 0.2736 | 0.7618 | 0.6236 | 0.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.
| Model Specification | Focal Regressor | Python | R fixest | StataNow 19.5 MP | CRV1 SE | R-Squared | Observations | Max Discrepancy % |
|---|---|---|---|---|---|---|---|---|
| M01 — Ethnic identity × General urban | urband | -0.089583 (0.038537) | -0.089583 (0.038537) | -0.089583 (0.038537) | 0.038537 | 0.5449 | 18,877 | 0.0000% |
| M02 — Ethnic identity × Nairobi/Mombasa | top2 | -0.191266 (0.067837) | -0.191266 (0.067837) | -0.191266 (0.067837) | 0.067837 | 0.5455 | 18,877 | 0.0000% |
| M03 — Ethnic identity × Cumulative urban years | urband_c | -0.039858 (0.010425) | -0.039858 (0.010425) | -0.039858 (0.010425) | 0.010425 | 0.5476 | 18,813 | 0.0000% |
| M04 — Ethnic identity × Pooled WLS | urband | -0.067481 (0.023700) | -0.067481 (0.023700) | -0.067481 (0.023700) | 0.023700 | 0.0332 | 18,038 | 0.0000% |
| M05 — Primary ethnic identity × General urban | urband | 0.068729 (0.062145) | 0.068729 (0.062145) | 0.068729 (0.062145) | 0.062145 | 0.7951 | 9,680 | 0.0000% |
| M06 — Religious identity index × General urban | urband | -0.069292 (0.118005) | -0.069292 (0.118005) | -0.069292 (0.118005) | 0.118005 | 0.8400 | 9,283 | 0.0000% |
| M07 — Social trust index × General urban | urband | -0.019773 (0.021549) | -0.019773 (0.021549) | -0.019773 (0.021549) | 0.021549 | 0.5758 | 19,120 | 0.0000% |
| M08 — Social trust index × Nairobi/Mombasa | top2 | -0.077472 (0.034687) | -0.077472 (0.034687) | -0.077472 (0.034687) | 0.034687 | 0.5761 | 19,120 | 0.0000% |
| M09 — Social trust index × Pooled WLS | top2 | -0.057434 (0.018714) | -0.057434 (0.018714) | -0.057434 (0.018714) | 0.018714 | 0.0726 | 18,283 | 0.0000% |
| M10 — Inter-ethnic trust × Nairobi/Mombasa | top2 | -0.044182 (0.021122) | -0.044182 (0.021122) | -0.044182 (0.021122) | 0.021122 | 0.5385 | 19,120 | 0.0000% |
| M11 — Own-church trust × Nairobi/Mombasa | top2 | -0.068761 (0.026290) | -0.068761 (0.026290) | -0.068761 (0.026290) | 0.026290 | 0.5706 | 19,120 | 0.0000% |
| M12 — Heterogeneity: Ethnic identity × Urban | urband | -0.137813 (0.068299) | -0.137813 (0.068299) | -0.137813 (0.068299) | 0.068299 | 0.5391 | 18,571 | 0.0000% |
| M12 — Heterogeneity: Ethnic identity × Urban | urband_female | 0.089832 (0.085132) | 0.089832 (0.085132) | 0.089832 (0.085132) | 0.085132 | 0.5391 | 18,571 | 0.0000% |
| M12 — Heterogeneity: Ethnic identity × Urban | urband_ageDM | -0.015418 (0.007285) | -0.015418 (0.007285) | -0.015418 (0.007285) | 0.007285 | 0.5391 | 18,571 | 0.0000% |
| M12 — Heterogeneity: Ethnic identity × Urban | urband_pareduDM | -0.017599 (0.012015) | -0.017599 (0.012015) | -0.017599 (0.012015) | 0.012015 | 0.5391 | 18,571 | 0.0000% |
| M13 — Heterogeneity: Trust × Nairobi/Mombasa | top2 | -0.076098 (0.054545) | -0.076098 (0.054545) | -0.076098 (0.054545) | 0.054545 | 0.5734 | 18,810 | 0.0000% |
| M13 — Heterogeneity: Trust × Nairobi/Mombasa | top2_female | 0.026589 (0.072191) | 0.026589 (0.072191) | 0.026589 (0.072191) | 0.072191 | 0.5734 | 18,810 | 0.0000% |
| M13 — Heterogeneity: Trust × Nairobi/Mombasa | top2_ageDM | -0.002483 (0.008701) | -0.002483 (0.008701) | -0.002483 (0.008701) | 0.008701 | 0.5734 | 18,810 | 0.0000% |
| M13 — Heterogeneity: Trust × Nairobi/Mombasa | top2_pareduDM | -0.006810 (0.011211) | -0.006810 (0.011211) | -0.006810 (0.011211) | 0.011211 | 0.5734 | 18,810 | 0.0000% |
| M14 — Civic participation × Nairobi/Mombasa | top2 | -0.211174 (0.059254) | -0.211174 (0.059254) | -0.211174 (0.059254) | 0.059254 | 0.6945 | 10,183 | 0.0000% |
| M15 — Media consumption × Nairobi/Mombasa | top2 | 0.304108 (0.041332) | 0.304108 (0.041332) | 0.304108 (0.041332) | 0.041332 | 0.7198 | 16,642 | 0.0000% |
| M16 — Political knowledge × Nairobi/Mombasa | top2 | 0.056138 (0.012322) | 0.056138 (0.012322) | 0.056138 (0.012322) | 0.012322 | 0.8207 | 16,559 | 0.0000% |
| M17 — Sensitivity: Drop post-2007 election wave | urband | -0.126942 (0.047568) | -0.126942 (0.047568) | -0.126942 (0.047568) | 0.047568 | 0.6051 | 16,413 | 0.0000% |
| M18 — Sensitivity: Intensive-tracking weights | urband | -0.074384 (0.034133) | -0.074384 (0.034133) | -0.074384 (0.034133) | 0.034133 | 0.5521 | 18,877 | 0.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.

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 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
| Model | Outcome Variable | Urban Measure | Estimator | Individual FE | Estimate | CRV1 SE | p-Value | Observations | Individuals | R-Squared |
|---|---|---|---|---|---|---|---|---|---|---|
| M04 | Standardized ethnic identity | General urban | Pooled WLS | No | -0.0675 | 0.0237 | 0.0051 | 18,038 | 8,859 | 0.0332 |
| M01 | Standardized ethnic identity | General urban | Individual FE | Yes | -0.0896 | 0.0385 | 0.0215 | 18,877 | 8,922 | 0.5449 |
| M02 | Standardized ethnic identity | Nairobi/Mombasa | Individual FE | Yes | -0.1913 | 0.0678 | 0.0055 | 18,877 | 8,922 | 0.5455 |
| M03 | Standardized ethnic identity | Cumulative urban years | Individual FE | Yes | -0.0399 | 0.0104 | 0.0002 | 18,813 | 8,921 | 0.5476 |
| M05 | Ethnicity as primary identity | General urban | Individual FE | Yes | 0.0687 | 0.0621 | 0.2706 | 9,680 | 7,591 | 0.7951 |
| M06 | Religious identity index | General urban | Individual FE | Yes | -0.0693 | 0.1180 | 0.5580 | 9,283 | 7,437 | 0.8400 |
| M09 | Composite social trust index | Nairobi/Mombasa | Pooled WLS | No | -0.0574 | 0.0187 | 0.0026 | 18,283 | 8,856 | 0.0726 |
| M07 | Composite social trust index | General urban | Individual FE | Yes | -0.0198 | 0.0215 | 0.3604 | 19,120 | 8,920 | 0.5758 |
| M08 | Composite social trust index | Nairobi/Mombasa | Individual FE | Yes | -0.0775 | 0.0347 | 0.0271 | 19,120 | 8,920 | 0.5761 |
| M10 | Trust in other ethnic groups | Nairobi/Mombasa | Individual FE | Yes | -0.0442 | 0.0211 | 0.0383 | 19,120 | 8,920 | 0.5385 |
| M11 | Trust in own church members | Nairobi/Mombasa | Individual FE | Yes | -0.0688 | 0.0263 | 0.0099 | 19,120 | 8,920 | 0.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 .

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.
| Model | Outcome Variable | Interaction Component | Estimate | CRV1 SE | t-Statistic | p-Value | Observations | R-Squared |
|---|---|---|---|---|---|---|---|---|
| M12 | Standardized ethnic identity | General urban baseline for men at mean age | -0.1378 | 0.0683 | -2.0178 | 0.0455 | 18,571 | 0.5391 |
| M12 | Standardized ethnic identity | General urban × Female | 0.0898 | 0.0851 | 1.0552 | 0.2931 | 18,571 | 0.5391 |
| M12 | Standardized ethnic identity | General urban × Demeaned age | -0.0154 | 0.0073 | -2.1164 | 0.0361 | 18,571 | 0.5391 |
| M12 | Standardized ethnic identity | General urban × Demeaned parental schooling | -0.0176 | 0.0120 | -1.4648 | 0.1452 | 18,571 | 0.5391 |
| M13 | Composite social trust index | Nairobi/Mombasa baseline for men at mean age | -0.0761 | 0.0545 | -1.3951 | 0.1652 | 18,810 | 0.5734 |
| M13 | Composite social trust index | Nairobi/Mombasa × Female | 0.0266 | 0.0722 | 0.3683 | 0.7132 | 18,810 | 0.5734 |
| M13 | Composite social trust index | Nairobi/Mombasa × Demeaned age | -0.0025 | 0.0087 | -0.2854 | 0.7758 | 18,810 | 0.5734 |
| M13 | Composite social trust index | Nairobi/Mombasa × Demeaned parental schooling | -0.0068 | 0.0112 | -0.6074 | 0.5446 | 18,810 | 0.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.
| Model | Extension or Robustness Check | Estimate | CRV1 SE | p-Value | FDR q-Value | School Clusters | Observations | R-Squared |
|---|---|---|---|---|---|---|---|---|
| M14 | Civic participation index × Nairobi/Mombasa | -0.2112 | 0.0593 | 0.0007 | — | 73 | 10,183 | 0.6945 |
| M15 | Media consumption index × Nairobi/Mombasa | 0.3041 | 0.0413 | 0.0000 | — | 141 | 16,642 | 0.7198 |
| M16 | Political knowledge share × Nairobi/Mombasa | 0.0561 | 0.0123 | 0.0000 | — | 141 | 16,559 | 0.8207 |
| M17 | Sensitivity: Exclude post-2007 election KLPS-2 Wave 1 | -0.1269 | 0.0476 | 0.0085 | — | 141 | 16,413 | 0.6051 |
| M18 | Sensitivity: Intensive-tracking weights only | -0.0744 | 0.0341 | 0.0310 | — | 141 | 18,877 | 0.5521 |
| M01 | Panel A multiple-hypothesis FDR check: Ethnic identity | -0.0896 | 0.0385 | 0.0215 | 0.0943 | 141 | 18,877 | 0.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 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:
- 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.
- 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.
- 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
- Abadie, A., Athey, S., Imbens, G. W., & Wooldridge, J. M. (2023). When should you adjust standard errors for clustering? The Quarterly Journal of Economics, 138, 1–35. https://doi.org/10.1093/qje/qjac038 ↩
- Anderson, M. L. (2008). Multiple inference and gender differences in the effects of early intervention: A reevaluation of the Abecedarian, Perry Preschool, and Early Training Projects. Journal of the American Statistical Association, 103, 1481–1495. https://doi.org/10.1198/016214508000000841 ↩
- Baird, S., Hicks, J. H., Kremer, M., & Miguel, E. (2016). Worms at work: Long-run impacts of a child health investment. The Quarterly Journal of Economics, 131, 1637–1680. https://doi.org/10.1093/qje/qjw022 ↩
- Bates, R. H. (1974). Ethnic competition and modernization in contemporary Africa. Comparative Political Studies, 6, 457–484. https://doi.org/10.1177/001041407400600403 ↩
- Callaway, B., & Sant'Anna, P. H. C. (2021). Difference-in-differences with multiple time periods. Journal of Econometrics, 225, 200–230. https://doi.org/10.1016/j.jeconom.2020.12.001
- Cameron, A. C., Gelbach, J. B., & Miller, D. L. (2008). Bootstrap-based improvements for inference with clustered errors. The Review of Economics and Statistics, 90, 414–427. https://doi.org/10.1162/rest.90.3.414 ↩
- de Chaisemartin, C., & D'Haultfœuille, X. (2020). Two-way fixed effects estimators with heterogeneous treatment effects. American Economic Review, 110, 2964–2996. https://doi.org/10.1257/aer.20181169
- Deutsch, K. W. (1961). Social mobilization and political development. American Political Science Review, 55, 493–514. https://doi.org/10.2307/1952679 ↩
- Eifert, B., Miguel, E., & Posner, D. N. (2010). Political competition and ethnic identification in Africa. American Journal of Political Science, 54, 494–510. https://doi.org/10.1111/j.1540-5907.2010.00443.x ↩
- Hamory, J., Miguel, E., Walker, M., Kremer, M., & Baird, S. (2021). Twenty-year economic impacts of deworming. Proceedings of the National Academy of Sciences, 118, e2023185118. https://doi.org/10.1073/pnas.2023185118 ↩
- Huntington, S. P. (1968). Political order in changing societies. Yale University Press. https://doi.org/10.2307/j.ctt1cc2mxj ↩
- Kramon, E., Hamory, J., Baird, S., & Miguel, E. (2020). Replication data for: Deepening or diminishing ethnic divides? The impact of urban migration in Kenya. Harvard Dataverse, V1. https://doi.org/10.7910/DVN/B8TWK2 ↩
- Kramon, E., Hamory, J., Baird, S., & Miguel, E. (2022). Deepening or diminishing ethnic divides? The impact of urban migration in Kenya. American Journal of Political Science, 66, 365–384. https://doi.org/10.1111/ajps.12590 ↩
- Kremer, M., Miguel, E., & Thornton, R. (2009). Incentives to learn. The Review of Economics and Statistics, 91, 437–456. https://doi.org/10.1162/rest.91.3.437 ↩
- Miguel, E., & Kremer, M. (2004). Worms: Identifying impacts on education and health in the presence of treatment externalities. Econometrica, 72, 159–217. https://doi.org/10.1111/j.1468-0262.2004.00481.x
- Oster, E. (2019). Unobservable selection and coefficient stability: Theory and evidence. Journal of Business & Economic Statistics, 37, 187–204. https://doi.org/10.1080/07350015.2016.1227711
- Putnam, R. D. (2007). E pluribus unum: Diversity and community in the twenty-first century. Scandinavian Political Studies, 30, 137–174. https://doi.org/10.1111/j.1467-9477.2007.00176.x
- Robinson, A. L. (2014). National versus ethnic identification in Africa: Modernization, colonial legacy, and the origins of territorial nationalism. World Politics, 66, 709–746. https://doi.org/10.1017/S0043887114000239 ↩
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 :
- 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.
- Amplified attenuation bias from urban–rural classification measurement error: In KLPS, general urban residence
urbandcollapses 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 .
- 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.
- Social desirability reporting distortion and upper-bound ceiling compression: With of weighted observations concentrated at the top category of the three-point
ethnicimpscale, 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. - 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.
| Structural Limitation | Primary Affected Specifications | Analytical Bias Direction on | Severity | Recommended Empirical Remedy |
|---|---|---|---|---|
| Time-varying economic and schooling shocks | Ethnic identity M01, M02 and Trust M08 | Negative bias exaggerating pure spatial magnitude | High | Origin-network shift-share IV and Oster coefficient-stability bounds |
| Urban–rural boundary misclassification | General urban M01 and M07 | Attenuation bias toward zero shrinking magnitudes | Moderate–High | Georeferenced nightlights and continuous gridded population density |
| Negative TWFE weights under cumulative duration | Static FE M01, M02, and M08 | Dilution toward zero understating long-run effects | Moderate | Switching-treatment multi-period DID estimators |
| Three-point ceiling compression and desirability bias | Ethnic identity M01 and M02 | Negative reporting bias and upper-tail variance squeeze | Moderate | Incentivized behavioral trust games and conditional FE logit |
| Destination spatial clustering and selective attrition | SEs across M01–M18 and M08 point estimate | Understated destination SEs; Upward bias toward zero in M08 | Moderate | Two-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:
- 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
xtswitchdidandxthdidregressroutines support direct implementation alongside formal pre-migration parallel-trends diagnostics. - 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.
- 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.
- 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).
- 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.
kramon_kenya_urban_panelpupidroundurbandurband_cudm5udm2top5top2urband_E2udm5_E2udm2_E2top5_E2Unlock 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.
Aligned with Study Variable Names, Robust Covariance Specifications, and Diagnostic Checks
Ready for Immediate Execution in Your Local Statistical Environment for Independent Verification
Bundled with Journal-Formatted DOCX & PDF Manuscripts, Empirical CSV Dataset, All Three R · Stata · Python Scripts, and Execution Notes
Every Download Link Is Cryptographically Signed for Active Members and Refreshes Seamlessly on the Article Page




