How-to articleMethodology & analyticsEconomics & finance

How to overcome data analysis challenges in South African economics PhDs: econometric and predictive modelling

South African economists have documented, in their own published work, how survey redesigns, missing incomes, panel attrition and short time series can distort results. This article reviews how they handled those problems and turns their solutions into a practical analysis plan for a doctoral thesis.

What you will learn

  • Explain the data problems South African researchers have reported in Statistics South Africa surveys, NIDS and macroeconomic series.
  • Choose between design-based causal methods, panel estimators and predictive models according to the research question.
  • Handle missing and coarse income data with methods that state their assumptions, rather than deleting cases.
  • Use survey weights, clustered standard errors and attrition adjustments correctly with South African microdata.
  • Evaluate forecasting and machine learning models out of sample against simple benchmarks.
  • Write a methods section that reports specification choices and sensitivity checks transparently.

What you will unlearn

  • Outliers and incomplete cases should be removed before analysis.Deleting cases changes the population you are describing and can bias estimates unless the data are missing completely at random, so diagnose first and justify any treatment.
  • Multicollinearity biases regression coefficients and must be corrected.Collinearity inflates standard errors but does not bias coefficients, and dropping a relevant correlated regressor can create omitted variable bias.
  • Fixed effects estimation proves a causal effect.Fixed effects remove time-invariant unobserved differences only; time-varying confounding and reverse causality still need an identification argument.
  • A machine learning model that fits well has found the drivers of the outcome.Predictive accuracy is not causal evidence, and accuracy itself only counts if it is measured on data the model has not seen.

Skills you will practise

  • Survey weighting and design
  • Missing data analysis
  • Panel data estimation
  • Identification strategy
  • Time-series diagnostics
  • Out-of-sample forecast evaluation
  • Sensitivity analysis

Why start from South African evidence

Doctoral economics in South Africa often addresses unemployment, poverty, inequality, inflation and access to finance. The analytical difficulties are not generic. They come from specific features of the national data: survey designs that changed over time, earnings questions with high non-response, a national panel affected by attrition and migration, and macroeconomic series that are short relative to the number of candidate predictors. South African economists have studied each of these problems in peer-reviewed work, and their solutions are the best starting point for a thesis that uses the same data.

This article first reviews that local evidence, then turns it into a step-by-step analysis plan. The studies were chosen because they are led or co-authored by researchers at South African institutions and because each reports a concrete data or modelling problem and how it was handled. They are examples, not a complete review, and you should search for newer work on your own topic.

How South African researchers have handled data and modelling problems

Comparability of cross-sectional surveys

Many trend analyses stack the October Household Surveys, Labour Force Surveys and Quarterly Labour Force Surveys. Kerr and Wittenberg (2015) documented that the introduction of a master sample of enumeration areas in 1999 came with changes in sampling and fieldwork practice, and showed that these changes partly explain implausible jumps in single-person households and employment in the late 1990s. Branson and Wittenberg (2014), working at the University of Cape Town, found inconsistencies in time trends and between household and person files when surveys were stacked. They used cross-entropy estimation to calibrate new weights to consistent age, sex, race and province totals, keeping the weights close to the original design weights, and made the weights for 1994 to 2007 publicly available.

Missing, bracketed and zero incomes

Earnings in South African surveys are a mixture of exact values, values reported only within a bracket, and missing values. Vermaak (2012), at the University of KwaZulu-Natal, analysed this coarse data in the Labour Force Surveys of 2001 to 2006 using multiple imputation. Poverty estimates among employed workers were robust to the treatment of missing and interval data but sensitive to how zero earnings were handled, while inequality estimates were more sensitive to methodological choices overall. The lesson for a thesis is that the imputation decision is part of the result and has to be reported and tested.

Panel data, attrition and identification

Ardington et al. (2009) used longitudinal data from KwaZulu-Natal to study how prime-aged adults respond when a household member gains or loses an old-age pension. By comparing the same households and individuals before and after pension receipt or loss, they controlled for fixed unobserved characteristics, and found that pension income increased employment, mainly through labour migration. The design, not the estimator alone, carried the causal claim. Ranchhod and Daniels (2021) analysed the first wave of NIDS-CRAM, a telephone survey of over 6,000 adults drawn from the National Income Dynamics Study. They applied weights for the complex design and non-response, used several definitions of employment to deal with furloughed workers, and discussed how a sample drawn from the 2017 NIDS wave can drift from the national population.

Forecasting with many predictors

Gupta and Kabundi (2011) forecast growth, inflation and the short-term interest rate with large factor models built from 267 quarterly series for 1980 to 2006, and evaluated one- to four-quarter-ahead forecasts out of sample against vector autoregressions, Bayesian VARs and a New Keynesian DSGE model. More recently, Botha et al. (2023) compared statistical learning methods, including penalised regressions, random forests, boosting and neural networks, with benchmarks and the South African Reserve Bank's own forecasts, using disaggregated consumer price data from 2009 to 2021. The Reserve Bank forecasts were best at one to three months, some learning methods were competitive at longer horizons, and the authors noted that the short time span limits what flexible models can learn.

What the South African studies reviewed here teach about common analytic problems.
StudyDataProblem reportedHow it was handled
Kerr and Wittenberg (2015)OHS and LFSSampling and fieldwork changesDocumented the changes and their effect on trends
Branson and Wittenberg (2014)Stacked national surveys, 1994-2007Inconsistent weights over timeCross-entropy recalibration to consistent totals
Vermaak (2012)LFS 2001-2006Missing and bracketed earningsMultiple imputation with sensitivity checks
Ardington et al. (2009)Longitudinal household data, KwaZulu-NatalUnobserved household differencesWithin-household and within-person comparisons
Ranchhod and Daniels (2021)NIDS-CRAM wave 1Non-response, sample driftDesign and non-response weights, alternative definitions
Gupta and Kabundi (2011); Botha et al. (2023)Macro and price seriesMany predictors, few periodsFactor models, penalisation, out-of-sample evaluation

Step 1: Know your data source and its documentation

Most theses in this field use Statistics South Africa surveys such as the Quarterly Labour Force Survey, the National Income Dynamics Study, South African Reserve Bank time series or international databases. NIDS is a national panel that began in 2008 with about 28,000 people and had five waves to 2017; public-release data and documentation are distributed through DataFirst at the University of Cape Town, which also runs a secure data centre for restricted files. Before any modelling, read the technical documentation and record the following.

  • The sampling design: strata, primary sampling units and the weight variable intended for your unit of analysis.
  • Questionnaire and fieldwork changes between rounds that could create artificial breaks (Kerr & Wittenberg, 2015).
  • How income and earnings were asked, including brackets, refusals and zeros (Vermaak, 2012).
  • For panels, attrition rates and any attrition-adjusted weights supplied with the data.
  • For time series, rebasing, definitional changes and the dates of known policy or measurement changes.

Exploratory analysis then serves a clear purpose: checking distributions and unusual values against the documentation, not cleaning the data until it looks tidy. An extreme wage may be a capture error, a top-coded value or a genuine high earner, and each calls for a different response.

Step 2: Let the research question choose the method

Econometric and machine learning methods are often listed side by side in methods chapters. They answer different questions, and examiners will ask which question your thesis is trying to answer.

Matching methods to questions.
If your question isTypical methodsWhat you must defend
Descriptive: how has unemployment changed?Weighted estimates with design-based standard errorsComparability of surveys over time
Causal: what is the effect of a grant on labour supply?Panel fixed effects, difference-in-differences, instrumental variables, regression discontinuityThe identification assumption, such as parallel trends or instrument exogeneity
Predictive: what will inflation be next quarter?Autoregressions, factor models, penalised regression, tree ensembles, neural networksOut-of-sample accuracy against benchmarks
Structural: what drives monetary transmission?VAR or VECM with stated identifying restrictions, DSGE modelsStationarity or cointegration, and the restrictions imposed

Design-based reasoning, in which the comparison rather than the regression supplies identification, is now central to applied microeconomics (Angrist & Pischke, 2009). A panel estimator removes fixed unobserved differences, but it does not deal with shocks that change over time and affect both treatment and outcome (Wooldridge, 2010). The pension study reviewed above is persuasive because it exploits changes in pension status within households (Ardington et al., 2009). Economic theory, whether human capital theory for earnings or a New Keynesian model for inflation, belongs here too: it tells you which variables are confounders, which are mediators that should not be controlled for, and which restrictions are reasonable.

Step 3: Treat missing data and survey design as part of the model

Missing data are classified by mechanism. If values are missing completely at random, complete-case analysis is unbiased but inefficient. If missingness depends only on observed variables (missing at random), multiple imputation or likelihood methods using those variables give valid inference. If it depends on the unobserved value itself, no method is assumption-free, and sensitivity analysis is required (Little & Rubin, 2019). High earners who refuse to report income are a plausible example of the last case.

  1. Tabulate missingness for every analysis variable and model it against observed characteristics.
  2. Use multiple imputation with an imputation model that includes the outcome, the survey design variables and bracket information where available (Vermaak, 2012).
  3. Report complete-case and imputed estimates side by side, and vary the treatment of zeros and brackets.
  4. Use the survey weights, strata and clusters in estimation, so that standard errors reflect the design (Branson & Wittenberg, 2014).
  5. For panels, compare those who stayed with those who left and use attrition-adjusted weights, or model attrition explicitly (Ranchhod & Daniels, 2021).

Step 4: Diagnose the model without over-correcting it

Many methods chapters list assumption tests without saying what follows from them. Each diagnostic has a specific consequence.

  • Heteroskedasticity leaves OLS coefficients unbiased but makes conventional standard errors wrong; use heteroskedasticity-robust or cluster-robust standard errors, clustered at the level of the sampling unit or treatment assignment (Wooldridge, 2010).
  • Multicollinearity inflates standard errors. It is not a bias, and the remedy is usually more information or a clearer question, not dropping a theoretically required variable.
  • Endogeneity from omitted variables, measurement error or reverse causality does bias estimates, and is addressed by design: panel variation, instruments with a defended exclusion restriction, or quasi-experiments (Angrist & Pischke, 2009).
  • Non-stationarity in macroeconomic series can produce spurious regressions; test for unit roots, consider cointegration, and check for structural breaks around known policy and measurement changes.
  • Specification choices should be tested and reported, not hidden (Hendry, 1980). Show how key estimates move across reasonable alternative specifications, in the spirit of sensitivity analysis (Leamer, 1983).

Step 5: Evaluate predictive and machine learning models honestly

Machine learning methods such as random forests, which average many decision trees grown on resampled data with random subsets of predictors (Breiman, 2001), can improve forecasts when there are many predictors. South African evidence suggests the gains are real but horizon-specific and constrained by short samples (Gupta & Kabundi, 2011; Botha et al., 2023). Four rules protect a thesis from overstated accuracy.

  1. Split time series by time. Use a rolling or expanding window so that every forecast uses only information available at that date; random k-fold splits leak future information.
  2. Tune hyperparameters inside the training window only, never on the evaluation period.
  3. Compare against simple benchmarks such as a random walk or an autoregression, and against official forecasts where they exist (Botha et al., 2023).
  4. Test whether accuracy differences are statistically meaningful, for example with the Diebold-Mariano test (Diebold & Mariano, 1995), and report results by horizon.

Finally, keep prediction and explanation separate. Variable importance from a forest describes what helped the model predict; it is not an estimate of a causal effect, and it should not be written up as one.

Worked example: planning a NIDS panel analysis (illustrative)

Suppose a candidate asks whether receipt of a social grant changes the labour force participation of other adults in the household, using NIDS waves 1 to 5. The following plan is hypothetical and contains no real estimates.

  1. Define the estimand: the effect of a household member starting to receive the grant on participation of prime-aged adults, within households over time, following the logic of Ardington et al. (2009).
  2. Build the panel and document attrition by wave and by baseline characteristics; plan to use the attrition-adjusted panel weights.
  3. Estimate individual fixed-effects models with wave effects, and cluster standard errors at the primary sampling unit.
  4. State the threat: households may become eligible because of changes that also affect participation, such as a death or a move. Test for pre-trends in participation before grant receipt.
  5. Run sensitivity checks: unweighted versus weighted, alternative participation definitions, and exclusion of households that split or merged.
  6. Report coefficients with confidence intervals and sample sizes for every model, and put the full set of robustness checks in an appendix.

Ethics, data access and common mistakes

Secondary analysis of anonymised public data usually still needs approval from your university's research ethics committee, and restricted NIDS or tax microdata come with access agreements that limit what you can publish. The main provisions of the Protection of Personal Information Act 4 of 2013 commenced on 1 July 2020, with a one-year transition to 1 July 2021, so any primary data you collect alongside secondary sources must be handled in line with it. Funding for doctoral study is commonly sought through the National Research Foundation; check the current call.

What to avoid and what to report instead.
Common mistakeBetter practice
Stacking survey rounds without checking design changesRead the documentation and test for breaks (Kerr & Wittenberg, 2015)
Listwise deletion of missing incomesMultiple imputation plus sensitivity to zeros and brackets (Vermaak, 2012)
Ignoring weights and clusteringDesign-based estimation with appropriate weights (Branson & Wittenberg, 2014)
Calling fixed effects estimates causal by defaultState and test the identifying assumption (Angrist & Pischke, 2009)
Reporting in-sample fit for forecasting modelsTime-ordered out-of-sample evaluation against benchmarks (Diebold & Mariano, 1995)

Key takeaways

Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A statistician reviews your work with you
  3. 3You get a plan and a quote
Econometrics support

References

  1. Angrist, J. D., & Pischke, J.-S. (2009). Mostly harmless econometrics: An empiricist's companion. Princeton University Press. https://doi.org/10.1515/9781400829828
  2. Ardington, C., Case, A., & Hosegood, V. (2009). Labor supply responses to large social transfers: Longitudinal evidence from South Africa. American Economic Journal: Applied Economics, 1(1), 22-48. https://doi.org/10.1257/app.1.1.22
  3. Botha, B., Burger, R., Kotzé, K., Rankin, N., & Steenkamp, D. (2023). Big data forecasting of South African inflation. Empirical Economics, 65(1), 149-188. https://doi.org/10.1007/s00181-022-02329-y
  4. Branson, N., & Wittenberg, M. (2014). Reweighting South African national household survey data to create a consistent series over time: A cross-entropy estimation approach. South African Journal of Economics, 82(1), 19-38. https://doi.org/10.1111/saje.12017
  5. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5-32. https://doi.org/10.1023/A:1010933404324
  6. Diebold, F. X., & Mariano, R. S. (1995). Comparing predictive accuracy. Journal of Business & Economic Statistics, 13(3), 253-263. https://doi.org/10.1080/07350015.1995.10524599
  7. Gupta, R., & Kabundi, A. (2011). A large factor model for forecasting macroeconomic variables in South Africa. International Journal of Forecasting, 27(4), 1076-1088. https://doi.org/10.1016/j.ijforecast.2010.10.001
  8. Hendry, D. F. (1980). Econometrics: Alchemy or science? Economica, 47(188), 387-406. https://doi.org/10.2307/2553385
  9. Kerr, A., & Wittenberg, M. (2015). Sampling methodology and fieldwork changes in the October Household Surveys and Labour Force Surveys. Development Southern Africa, 32(5), 603-612. https://doi.org/10.1080/0376835X.2015.1044079
  10. Leamer, E. E. (1983). Let's take the con out of econometrics. American Economic Review, 73(1), 31-43. https://ideas.repec.org/a/aea/aecrev/v73y1983i1p31-43.html
  11. Little, R. J. A., & Rubin, D. B. (2019). Statistical analysis with missing data (3rd ed.). Wiley. https://doi.org/10.1002/9781119482260
  12. Ranchhod, V., & Daniels, R. C. (2021). Labour market dynamics in South Africa at the onset of the COVID-19 pandemic. South African Journal of Economics, 89(1), 44-62. https://doi.org/10.1111/saje.12283
  13. Vermaak, C. (2012). Tracking poverty with coarse data: Evidence from South Africa. Journal of Economic Inequality, 10(2), 239-265. https://doi.org/10.1007/s10888-011-9211-2
  14. Wooldridge, J. M. (2010). Econometric analysis of cross section and panel data (2nd ed.). MIT Press. https://mitpress.mit.edu/9780262232586/econometric-analysis-of-cross-section-and-panel-data/

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2026, June 10). How to overcome data analysis challenges in South African economics PhDs: econometric and predictive modelling. PhD Research Lab. https://www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa/

PhD Research Lab Academy. “How to Overcome Data Analysis Challenges in South African Economics PhDs: Econometric and Predictive Modelling.” PhD Research Lab, 10 June 2026, www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa. Accessed [access date].

PhD Research Lab Academy (2026) How to overcome data analysis challenges in South African economics PhDs: econometric and predictive modelling. PhD Research Lab. Available at: https://www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa/ (Accessed: [access date]).

PhD Research Lab Academy. “How to Overcome Data Analysis Challenges in South African Economics PhDs: Econometric and Predictive Modelling.” PhD Research Lab. June 10, 2026. https://www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa.

PhD Research Lab Academy, ‘How to Overcome Data Analysis Challenges in South African Economics PhDs: Econometric and Predictive Modelling’ (PhD Research Lab, 10 June 2026) <https://www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa> accessed [access date].

PhD Research Lab Academy. How to overcome data analysis challenges in South African economics PhDs: econometric and predictive modelling [Internet]. PhD Research Lab; 2026 Jun 10 [cited [access date]]. Available from: https://www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa/

PhD Research Lab Academy, “How to overcome data analysis challenges in South African economics PhDs: econometric and predictive modelling,” PhD Research Lab, June 10, 2026. [Online]. Available: https://www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa. [Accessed: [access date]].

@online{phd_data_analysis_services_in_south_africa_2026,
  author = {{PhD Research Lab Academy}},
  title = {{How to overcome data analysis challenges in South African economics PhDs: econometric and predictive modelling}},
  organization = {PhD Research Lab},
  date = {2026-06-10},
  url = {https://www.phdassistance.com/academy/how-to-article/phd-data-analysis-services-in-south-africa},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

How to overcome data analysis challenges in South African economics PhDsNeed help applying it to your study?
Econometrics support