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.
| Study | Data | Problem reported | How it was handled |
|---|---|---|---|
| Kerr and Wittenberg (2015) | OHS and LFS | Sampling and fieldwork changes | Documented the changes and their effect on trends |
| Branson and Wittenberg (2014) | Stacked national surveys, 1994-2007 | Inconsistent weights over time | Cross-entropy recalibration to consistent totals |
| Vermaak (2012) | LFS 2001-2006 | Missing and bracketed earnings | Multiple imputation with sensitivity checks |
| Ardington et al. (2009) | Longitudinal household data, KwaZulu-Natal | Unobserved household differences | Within-household and within-person comparisons |
| Ranchhod and Daniels (2021) | NIDS-CRAM wave 1 | Non-response, sample drift | Design and non-response weights, alternative definitions |
| Gupta and Kabundi (2011); Botha et al. (2023) | Macro and price series | Many predictors, few periods | Factor 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.
| If your question is | Typical methods | What you must defend |
|---|---|---|
| Descriptive: how has unemployment changed? | Weighted estimates with design-based standard errors | Comparability of surveys over time |
| Causal: what is the effect of a grant on labour supply? | Panel fixed effects, difference-in-differences, instrumental variables, regression discontinuity | The identification assumption, such as parallel trends or instrument exogeneity |
| Predictive: what will inflation be next quarter? | Autoregressions, factor models, penalised regression, tree ensembles, neural networks | Out-of-sample accuracy against benchmarks |
| Structural: what drives monetary transmission? | VAR or VECM with stated identifying restrictions, DSGE models | Stationarity 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.
- Tabulate missingness for every analysis variable and model it against observed characteristics.
- Use multiple imputation with an imputation model that includes the outcome, the survey design variables and bracket information where available (Vermaak, 2012).
- Report complete-case and imputed estimates side by side, and vary the treatment of zeros and brackets.
- Use the survey weights, strata and clusters in estimation, so that standard errors reflect the design (Branson & Wittenberg, 2014).
- 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.
- 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.
- Tune hyperparameters inside the training window only, never on the evaluation period.
- Compare against simple benchmarks such as a random walk or an autoregression, and against official forecasts where they exist (Botha et al., 2023).
- 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.
- 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).
- Build the panel and document attrition by wave and by baseline characteristics; plan to use the attrition-adjusted panel weights.
- Estimate individual fixed-effects models with wave effects, and cluster standard errors at the primary sampling unit.
- 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.
- Run sensitivity checks: unweighted versus weighted, alternative participation definitions, and exclusion of households that split or merged.
- 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.
| Common mistake | Better practice |
|---|---|
| Stacking survey rounds without checking design changes | Read the documentation and test for breaks (Kerr & Wittenberg, 2015) |
| Listwise deletion of missing incomes | Multiple imputation plus sensitivity to zeros and brackets (Vermaak, 2012) |
| Ignoring weights and clustering | Design-based estimation with appropriate weights (Branson & Wittenberg, 2014) |
| Calling fixed effects estimates causal by default | State and test the identifying assumption (Angrist & Pischke, 2009) |
| Reporting in-sample fit for forecasting models | Time-ordered out-of-sample evaluation against benchmarks (Diebold & Mariano, 1995) |
Key takeaways
- South African survey series are not automatically comparable over time; check design changes and use consistent weights (Kerr & Wittenberg, 2015; Branson & Wittenberg, 2014).
- How you treat missing, bracketed and zero incomes can change poverty and inequality results, so report it as a modelling choice (Vermaak, 2012).
- Causal claims rest on a design, such as within-household change, not on the estimator alone (Ardington et al., 2009; Angrist & Pischke, 2009).
- Heteroskedasticity and collinearity affect precision; endogeneity affects bias; treat each accordingly (Wooldridge, 2010).
- Forecasting and machine learning models must beat simple benchmarks out of sample, by horizon, before any claim of accuracy (Botha et al., 2023; Diebold & Mariano, 1995).
