AREC 570 / ECON 530 · Unit 6 · Draft 3

Choosing a method for an applied economics question

This page is a reference for choosing an empirical method and writing the empirical strategy section of your paper. Each section below opens and closes; select a heading to expand it.

  1. The map places each method by how much economic structure it assumes and by what it estimates. Use it to see which methods sit near yours.
  2. The decision tree asks about your research question and returns the methods that fit it.
  3. Four choices in every empirical strategy separates the model, estimation and inference, identification, and reported results, in the order Lecture 6.1 presents them, so you can check that your section states each one.
  4. Structural estimation in detail covers how BLP demand models and other structural models are estimated (Lecture 6.2).
  5. Example: climate and U.S. agriculture shows one question answered with three designs (Lecture 6.1).

The map

Where each method sits, and what it assumes.

Each point is a method. The horizontal axis shows how much economic structure the method assumes. Design-based methods on the left rely on how treatment was assigned. Structural methods on the right specify preferences, technology, or market behavior and estimate their parameters. Methods in the middle combine the two.

The vertical axis shows what the method estimates. Methods near the bottom estimate the effect of a change that occurred in the data. Methods near the top estimate outcomes the data do not contain: a policy not yet tried, a welfare measure, or the mechanism behind a response.

Color marks the family of methods. A filled point is covered in the Unit 6 readings; an open point is not. The buttons below the legend show only the methods common in one field.

Design-based Combining approaches Structural Time series Open point: beyond the Unit 6 readings

Select a point to see an example specification, what the method estimates, its key assumptions, the data it needs, and how it is estimated. Specifications are standard textbook forms; the key references give the versions used in applied work. Positions are approximate.

To narrow the map to the methods that fit your question, use the decision tree.

The decision tree

Methods that fit your research question.

Answer two or three questions about your research question. The last step lists candidate methods, each with an example specification, what it estimates, its key assumptions, the data it needs, and how it is estimated. The same methods are highlighted on the map.

Once you have chosen a method, the next section lists the four choices your empirical strategy section has to state.

Four choices in every empirical strategy

Model, estimation and inference, identification, and reported results, stated separately.

Every empirical strategy section makes four separate choices. Papers often state the model and the estimator clearly and say less about identification and inference. Writing "we estimate a BLP model" or "we estimate a fixed-effects regression" names a model and an estimator; it does not say what variation identifies the parameters. The rows follow the order in which a paper presents these choices (Lecture 6.1): the estimation strategy first, then the identification strategy. Identification is still the logically prior question, because no estimator can recover a parameter the data do not identify. Each row gives a design-based example (the panel weather model from Lecture 6.1) and a structural example (BLP demand from Lecture 6.2).

1. ModelWhat relationship or behavior generates the data?

In a design-based paper, the model is the estimating equation and the meaning of its parameter. In a structural paper, it is the economic primitives: preferences, technology, information, and how agents interact. The model defines the parameters and what a counterfactual means.

Panel weather: log crop yield in a county and year depends on growing-season weather, county fixed effects, and year fixed effects.

BLP: consumer i's utility from product j depends on price and product characteristics, with tastes that vary across consumers, plus a demand shock ξ that the researcher does not observe. Firms may also set prices in a Bertrand-Nash equilibrium.

Common mistake: treating the functional form as a detail. In the logit model, the functional form alone determines how consumers substitute between products.

2. Estimation and inferenceWhat objective function, how is it solved, and how uncertain are the parameters?

An estimator is an objective function built from the data, plus a method for finding its minimum or maximum. Some estimators have a closed-form solution (OLS, 2SLS). Most structural estimators require a numerical search. Inference states what the standard errors on the parameters allow for, such as heteroskedasticity or correlation within clusters, and why.

Panel weather: OLS with county and year fixed effects, which has a closed-form solution, with standard errors that allow the errors of neighboring counties to be correlated.

BLP: generalized method of moments on the condition E[ξ·Z] = 0, where Z is the set of instruments described under identification. Because ξ has no closed form, the algorithm solves for it inside each step of the search (see the structural estimation section). Standard errors come from the GMM formula.

Common mistake: reporting estimates from a numerical search without checking that the search reached the minimum.

3. IdentificationWhat variation determines the parameters?

The argument that, with unlimited data, only one set of parameter values is consistent with what you observe. It does not depend on the estimator.

Panel weather: year-to-year deviations in weather within a county, assumed to be as good as random.

BLP: firms see the demand shock ξ when they set prices, so price is correlated with ξ and needs an instrument: cost shifters, characteristics of rival products, or prices of the same product in other markets. Differences in tastes are identified by how market shares shift across products when prices or the set of products change.

Common mistake: answering "how is it identified?" with "by GMM." GMM is an estimator. Identification is about the variation and the instruments.

4. Reported resultsWhat does the paper report, and how uncertain is it?

The quantities the paper is about, such as elasticities, welfare, or counterfactual outcomes. These are functions of the parameters, so their standard errors come from the delta method, the bootstrap, or simulation.

Panel weather: the predicted change in yields under a warming scenario, computed from the estimated weather relationship, with a confidence interval.

BLP: elasticities and merger simulations computed from the estimates, with standard errors for those as well.

Common mistake: reporting standard errors for the parameters and omitting them for the welfare number reported in the abstract.

Common estimators and what you specify

Most applied methods use one of these estimators. They differ in what the researcher has to specify.

EstimatorYou specifyOptimized byExamples on the map
Least squares (OLS, FE, 2SLS)A linear conditional mean, or moment conditions that are linear in parametersClosed formDiD, IV, panel weather, Ricardian, logit and nested logit demand (Berry 1994 inversion)
Maximum likelihoodThe full distribution of the data given parametersNumerical: gradient methods such as BFGS or NewtonStochastic frontier, conditional logit, Rust's bus engine model, count models for trips
Generalized method of momentsMoment conditions only, usually orthogonality between an unobservable and instrumentsNumerical, usually in two steps to get the optimal weighting matrixBLP, conduct models, production functions (Olley-Pakes, ACF), spatial models
Simulation-based (SMM, indirect inference, simulated MLE)A model you can simulate even if you cannot write its likelihood or momentsNumerical; simulation draws held fixed across iterationsMixed logit, dynamic and option value models, matching model moments to reduced-form estimates
Nonlinear least squares / systemsNonlinear equations, often several at once with cross-equation restrictionsIterated numerical estimationAIDS and QUAIDS with homogeneity and symmetry imposed; cost functions with share equations
Bayesian (MCMC)A likelihood plus priors on the parametersSampling from the posteriorHierarchical choice models, individual-level willingness to pay
CalibrationParameter values taken from the literature or set to match a benchmark yearNo estimation; the model is solved at those valuesCGE, equilibrium displacement models, many real options and spatial models
Nonparametric / semiparametricSmoothness, with no assumed functional form for some or all of the relationshipKernels, local polynomials, sieves, treesRD (local linear), matching, DML, causal forests

Where "nonparametric" fits in structural work. It usually comes up in identification. Berry and Haile (2014) show what demand models can be identified without assuming the logit error or a parametric taste distribution. That tells you which conclusions depend on data and which depend on functional form. Applied papers then estimate a parametric version and should state which results depend on the parametric choices.

Structural estimators usually require a numerical search, which raises questions that design-based estimators do not. The next section covers them.

Structural estimation in detail

How BLP and other structural models are estimated (Lecture 6.2).

This section is for papers that estimate a structural model. It walks through BLP demand estimation one step at a time, explains numerical search, lists how other structural methods are usually estimated, and ends with a short exercise in R.

BLP, step by step

BLP is estimated by GMM. Conlon and Gortmaker (2020) implement current recommended practice in PyBLP, a Python package that can be called from R through reticulate. The steps below build the estimator one complication at a time.

  1. Logit is a linear IV regression. With market shares, ln(sj/s0) = xβ − αp + ξ (Berry 1994). Estimate it by 2SLS with instruments for price, for example with fixest. The limitation is the substitution pattern: when one price rises, every other product gains share in proportion to its size.
  2. Nested logit is still linear IV. Add ln(share within nest) as a regressor, which also needs an instrument. Substitution is now stronger within nests.
  3. Random coefficients break linearity. Tastes for price and attributes now vary with dispersion σ. Shares no longer invert analytically, so for any guess of σ the mean utilities δ have to be solved for.
  4. Inner loop. For a given σ, simulate a set of consumers and solve for the δ that makes predicted shares equal observed shares. This uses a contraction mapping, a fixed-point iteration that is guaranteed to converge. Use a tight tolerance; a loose one makes the outer objective inaccurate.
  5. Linear parameters by IV. Regress δ on x and p with instruments to recover β and α. The residual is ξ(σ).
  6. Outer loop. Search over σ to minimize the GMM objective ξ(σ)′Z W Z′ξ(σ). This is the nested fixed point. An alternative formulation, MPEC, solves the same problem as one constrained optimization (Dubé, Fox and Su 2012).
  7. Check and report. Use several starting values, check that the gradient is near zero at the optimum, and report elasticities and diversion ratios. Knittel and Metaxoglou (2014) found that results can be sensitive to optimizer choices; Conlon and Gortmaker (2020) show that tight tolerances and accurate integration remove most of that sensitivity. Add supply-side moments or micro moments from household data when the aggregate shares alone identify σ poorly.

Grid search, optimizers, and nested loops

Grid search evaluates the objective at every point on a grid of parameter values and keeps the best. It is transparent and cannot get stuck at a local optimum within the grid, but the cost grows exponentially: 100 points per parameter means 10,000 evaluations for two parameters and 1010 for five. Use it for one or two nonlinear parameters (a temperature threshold, a discount factor, a kink location), for starting values, and for plotting the objective to see whether it is well behaved.

Gradient-based optimizers (BFGS, Newton, Nelder-Mead without gradients) move uphill from a starting point. They are fast and scale to many parameters, but find a local optimum. Multiple starting values are the basic safeguard.

Concentrating out parameters that enter linearly, as in step 5 above, means the numerical search covers only the nonlinear parameters. This is what makes many structural models feasible.

Nested fixed point refers to any estimation where evaluating the objective requires solving the model: inverting shares in BLP, solving the value function in dynamic discrete choice or option value models, or solving for prices in a spatial equilibrium. The inner solution must be accurate, and the outer search is only as good as the inner one.

Recovery tests check the estimator directly. Simulate data from the model with parameters you choose, run your estimator, and check that it returns them. An estimator that cannot recover parameters you set will not recover the true ones.

How each structural method is usually estimated

MethodEstimatorWhat makes it hardSoftware
AIDS / QUAIDSIterated nonlinear SUR with homogeneity and symmetry imposed; LA-AIDS is linearPrice endogeneity, zero purchases, choosing the groupmicEconAids (R); quaids (Stata)
Discrete choice / BLPLogit: 2SLS. Random coefficients: GMM by nested fixed point or MPEC. Individual data: simulated MLEInstruments, inner-loop tolerance, starting valuesPyBLP; mlogit, apollo (R)
Conduct and markupsGMM on demand plus pricing first-order conditions; or the production approach (ACF control function)Distinguishing conduct from cost; output elasticity estimationPyBLP for the demand side; custom code
Real optionsCalibrated thresholds; or MLE or SMM on the timing of decisionsSolving the value function at each parameter guessCustom code (value function iteration, finite differences, lattices)
Dynamic discrete choiceNested fixed point MLE (Rust); two-step conditional choice probabilities (Hotz-Miller)Large state spaces; the discount factor is poorly identifiedCustom code
Hedonic / RicardianOLS or FE first stage; sorting models by MLE or GMM for welfare beyond marginal changesOmitted variables correlated with the amenityfixest
Travel costCount models (Poisson, negative binomial) or conditional logit over sites by MLEValue of travel time; defining the choice setMASS, mlogit
Choice experimentsConditional or mixed logit by simulated MLE, or BayesianWTP is a ratio of coefficients, so use the delta method or Krinsky-Robb simulationapollo, logitr (R)
Production, cost, profitSUR on the cost function with share equations; control-function GMM for production functionsInputs chosen with knowledge of productivitysystemfit, prodest
Stochastic frontierMLE with a composed errorThe inefficiency distribution drives the resultsfrontier, sfaR
Equilibrium displacementCalibration; solve the linear systemBorrowed elasticities; report Monte Carlo rangesMatrix algebra in R
CGECalibration to a social accounting matrixClosure rules and elasticities; sensitivity analysisGEMPACK (GTAP), GAMS
Structural gravityPoisson pseudo-maximum likelihood with high-dimensional fixed effectsZeros in trade flows; multilateral resistancefixest::fepois
Spatial equilibriumEstimate the trade elasticity, calibrate the rest, solve for equilibrium as a fixed pointTrade costs across the networkCustom code
Risk preferencesMLE or simulated MLE on choicesSeparating risk preferences from beliefsCustom code

Try it: recover a parameter you set

About fifteen minutes in R. Simulate purchase decisions with a price coefficient you choose, then recover it three ways: grid search, a numerical optimizer, and glm. The exercise shows that glm runs the second method for you.

set.seed(570)
n     <- 2000
price <- runif(n, 1, 5)
beta  <- c(2, -0.8)                      # intercept and price coefficient you set
buy   <- rbinom(n, 1, plogis(beta[1] + beta[2] * price))

loglik <- function(b) {
  p <- plogis(b[1] + b[2] * price)
  sum(buy * log(p) + (1 - buy) * log(1 - p))
}

# 1. Grid search over the price coefficient, intercept held at its true value
grid <- seq(-2, 0, by = 0.01)
ll   <- sapply(grid, function(b2) loglik(c(2, b2)))
grid[which.max(ll)]
plot(grid, ll, type = "l")               # look at the shape of the objective

# 2. Numerical optimizer over both parameters, from a poor starting value
fit <- optim(c(0, 0), function(b) -loglik(b), method = "BFGS", hessian = TRUE)
fit$par
sqrt(diag(solve(fit$hessian)))           # standard errors from the Hessian

# 3. The built-in estimator does step 2 for you
coef(glm(buy ~ price, family = binomial))

# 4. A quantity of interest: price elasticity at mean price, by delta method or bootstrap

Questions to consider: Why hold the intercept fixed in the grid search? What would a grid over both parameters cost, and over ten? What does the plotted log-likelihood suggest about whether the optimizer can get lost here, and why might BLP be different?

Readings for this section

Nevo (2000), "A Practitioner's Guide to Estimation of Random-Coefficients Logit Models of Demand," Journal of Economics & Management Strategy, the optional reading for Lecture 6.2, walks through BLP estimation step by step. Conlon and Gortmaker (2020), "Best Practices for Differentiated Products Demand Estimation with PyBLP," RAND Journal of Economics, documents current practice and the PyBLP software. Further reading: Train, Discrete Choice Methods with Simulation (free online), chapters on simulated MLE; Reiss and Wolak (2007), "Structural Econometric Modeling," Handbook of Econometrics, vol. 6A.

Example: climate and U.S. agriculture

One question answered with three designs (Lecture 6.1).

How will a warmer climate affect U.S. agriculture? Three designs answer this question using different comparisons, so each one estimates a different relationship. Each design is also a point on the map.

Ricardian model

Regression

Farmland value per acre on long-run average temperature and precipitation, across counties (Mendelsohn, Nordhaus, and Shaw 1994).

What it estimates

The long-run effect of climate on land values, including the adaptation farmers have already made.

Identifying assumption

No omitted factor varies with climate across counties and affects land values. Irrigation violates this assumption (Schlenker, Hanemann, and Fisher 2005).

Panel weather model

Regression

County crop yields or farm profits on year-to-year weather, with county and year fixed effects (Deschênes and Greenstone 2007; Schlenker and Roberts 2009).

What it estimates

The short-run response to weather, including yield losses above crop-specific temperature thresholds.

Identifying assumption

Within a county, year-to-year deviations in weather are as good as random. Farmers cannot fully adapt to a single hot year, so the estimate may overstate long-run damage.

Long differences

Regression

Changes in county outcomes over several decades on changes in climate over the same period (Burke and Emerick 2016).

What it estimates

The response to gradual climate change. Compared with the panel estimate, it shows how much adaptation offsets short-run damage.

Identifying assumption

Within a state, counties' climate trends are unrelated to other trends in their outcomes.

The three answers differ partly because the designs estimate different relationships and partly because some designs are more credible than others. Timmins and Schlenker (2009) discuss this tradeoff between cross-sectional and panel variation.

Lecture tags follow the Unit 6 schedule: 6.1 design-based identification, 6.2 structural models and combining approaches, 6.3 machine learning and newer estimators, 6.4 experiments and mixed methods, 6.5 evaluating evidence. "Beyond the readings" marks methods that the Unit 6 readings do not cover. Key references are being checked before each lecture uses them; those for the climate example and the discrete choice (BLP) entry have been checked.