Quantitative & Qualitative Data Analysis

Chapter 7
Causal, Longitudinal and Multilevel Inference

Doctorate in Information Technology
Quantitative & Qualitative Data Analysis   •   Doctorate

Chapter 7: 7. Causal, Longitudinal and Multilevel Inference

1. Introduction

Quantitative and qualitative data analysis increasingly seeks to answer questions that go beyond description and prediction. Researchers and managers want to know whether an intervention caused an outcome, how effects change over time, why effects differ between groups, and how individual behavior is shaped by organizational or social contexts. These questions require causal, longitudinal, and multilevel inference.

Causal inference concerns the estimation of what would have happened to a unit under an alternative exposure, treatment, or policy. Longitudinal inference examines change, dependence, timing, duration, and dynamic relationships across repeated observations. Multilevel inference recognizes that observations are often nested within teams, firms, regions, schools, hospitals, or digital communities. Ignoring such structures can produce biased estimates, invalid standard errors, or misleading conclusions.

This chapter integrates directed acyclic graphs, experiments, matching, propensity scores, instrumental variables, difference-in-differences, panel models, time-series models, survival analysis, and hierarchical models. It emphasizes both statistical technique and the assumptions that make interpretation defensible.

2. Learning Objectives

By the end of this chapter, readers should be able to:

1. Distinguish association, prediction, and causal effect.

2. Represent causal assumptions with directed acyclic graphs (DAGs).

3. Explain randomization, matching, propensity scores, instrumental variables, and difference-in-differences.

4. Select suitable panel, time-series, survival, and multilevel models.

5. Diagnose threats to identification, dependence, and validity.

6. Interpret heterogeneous and contextual effects.

7. Design ethically responsible causal and longitudinal studies.

3. Meaning and Concept

A causal effect is defined by comparing potential outcomes. For unit i, let Y_i(1) denote the outcome if the unit receives a treatment and Y_i(0) the outcome if it does not. The individual causal effect is Y_i(1) − Y_i(0). Because only one potential outcome is observed, the individual effect is generally unidentifiable without assumptions. The average treatment effect is E[Y(1) − Y(0)], while the average treatment effect on the treated is E[Y(1) − Y(0)|T=1]. These estimands must be specified before analysis.

Association describes how variables vary together. Prediction estimates an outcome conditional on observed information. Causal inference asks how an outcome would change under a specified intervention. A highly predictive variable need not be a useful intervention target; for example, a post-treatment variable may predict outcomes while being inappropriate to control for.

Longitudinal data contain repeated observations over time. Panel data follow multiple units, such as firms or patients, whereas time-series data commonly follow one aggregate process. Repeated observations are statistically dependent, and temporal ordering becomes central. Multilevel data have observations at different levels. Employees may be nested in departments, departments in firms, and firms in industries. Effects can therefore operate within units, between units, and across levels.

4. Fundamental Principles

4.1 Counterfactual reasoning

Causal claims require a comparison between observed outcomes and credible counterfactual outcomes. The comparison group should represent what would have happened to treated units in the absence of treatment. This is a design problem before it is a modeling problem.

4.2 Identification before estimation

Identification asks whether the causal quantity can be recovered from available data under explicit assumptions. Estimation then uses a statistical procedure to calculate it. A sophisticated estimator cannot rescue an unidentified design.

4.3 Temporality and intervention specificity

The cause must precede the effect, and the treatment must be defined sufficiently precisely. “Digital transformation” may comprise software adoption, process redesign, training, and restructuring; treating it as a single undifferentiated exposure can obscure causal interpretation.

4.4 Exchangeability, positivity, and consistency

Exchangeability means that, conditional on appropriate covariates, treated and untreated units are comparable with respect to potential outcomes. Positivity requires a nonzero probability of each treatment level for relevant covariate patterns. Consistency means that the observed outcome under the received treatment equals the corresponding potential outcome and that treatment versions are meaningfully equivalent.

4.5 Dependence and clustering

Repeated or nested observations violate the assumption that all observations are independent. Dependence must be modeled, addressed through robust standard errors, or incorporated into the design.

4.6 Robustness and transparency

Credible analysis reports assumptions, missing-data decisions, alternative specifications, sensitivity analyses, uncertainty intervals, and deviations from the original protocol. Statistical significance alone is not evidence of practical importance or causal validity.

5. Major Components / Elements

Directed acyclic graphs

A DAG represents variables as nodes and causal relations as directed arrows. A backdoor path from treatment to outcome creates confounding. Conditioning on an appropriate set of pre-treatment variables can block such paths. Researchers should not adjust for mediators, colliders, or consequences of treatment when estimating a total effect. A collider is a variable caused by two other variables; conditioning on it can create a spurious association.

Experiments

Randomized experiments assign treatment independently of potential outcomes, usually creating exchangeability in expectation. The intention-to-treat effect compares units according to assignment, even when compliance is imperfect. Per-protocol or treatment-on-the-treated effects require stronger assumptions. Cluster randomization is appropriate when treatment operates at group level or individual treatment would cause contamination.

Matching and propensity scores

Matching pairs treated and untreated units with similar observed covariates. A propensity score is the probability of treatment conditional on measured pre-treatment covariates. It may be used for matching, weighting, stratification, or covariate adjustment. Propensity methods balance observed variables; they do not automatically remove unmeasured confounding. Balance diagnostics, overlap, trimming rules, and estimand choice must be reported.

Instrumental variables

An instrument affects treatment assignment but influences the outcome only through treatment and is not associated with unmeasured confounding. The key assumptions are relevance, independence, exclusion restriction, and often monotonicity. Two-stage least squares can estimate a local average treatment effect for compliers when treatment effects are heterogeneous. Weak instruments can produce unstable and biased estimates.

Difference-in-differences

Difference-in-differences compares changes over time in a treated group with changes in a comparison group. Its central assumption is parallel trends: absent treatment, both groups would have followed similar trends. Event-study graphs, pre-treatment trend tests, staggered-adoption estimators, and placebo interventions are useful diagnostics. Conventional two-way fixed-effects models can be problematic when treatment effects vary across cohorts and time.

Panel and time-series models

Fixed-effects panel models control for time-invariant unit characteristics by using within-unit variation. Random-effects models treat unit-specific effects as random and uncorrelated with regressors, an assumption that must be defended. Dynamic models include lags and may require attention to stationarity, serial correlation, and feedback. Time-series analysis may use autoregressive integrated moving-average models, vector autoregression, interrupted time series, or state-space models.

Survival models

Survival analysis studies time until an event, such as system failure, employee departure, disease recurrence, or customer churn. Censoring occurs when the event is not observed during follow-up. The Kaplan–Meier estimator describes survival, while the Cox proportional-hazards model estimates covariate effects on the hazard. Competing-risks models are needed when different event types prevent one another.

Hierarchical and multilevel models

Multilevel models estimate individual-level and group-level relationships while accounting for correlated observations. Random-intercept models allow baseline outcomes to vary across groups; random-slope models allow relationships to vary across groups. Cross-level interactions test whether a group characteristic changes an individual-level effect. Intraclass correlation measures the proportion of variance attributable to group clustering.

6. Process / Framework / Methodology

A defensible workflow begins with a substantive question and a clearly defined estimand. Researchers should specify the population, treatment, outcome, time horizon, treatment contrasts, and whether the target is an average, conditional, local, or dynamic effect.

Next, develop a causal theory and DAG. Identify treatment causes, outcome causes, mediators, colliders, selection variables, and time-varying confounders. The DAG should be based on domain knowledge rather than solely on statistical associations.

Select a design. Randomization is preferred when feasible. If not, consider a natural experiment, matched observational design, panel design, interrupted time series, instrumental variable, or difference-in-differences approach. Define eligibility, treatment timing, comparison groups, and follow-up before examining results.

Prepare the data using a documented codebook. Check measurement validity, missingness, duplicates, treatment contamination, temporal ordering, outliers, and linkage errors. Multiple imputation may be appropriate when missingness assumptions are plausible; complete-case analysis can be biased.

Estimate the model that corresponds to the design. Examine covariate balance, overlap, pre-trends, serial correlation, proportional hazards, random-effects assumptions, and residual behavior. Use clustered or heteroskedasticity-robust uncertainty estimates where appropriate.

Conduct sensitivity analysis. Examine alternative covariate sets, bandwidths, matching specifications, functional forms, lag structures, negative controls, placebo outcomes, and omitted-variable bias. Report both statistical and substantive effect sizes.

Finally, interpret results in relation to the estimand and assumptions. Avoid converting a conditional association into a universal causal claim. Communicate uncertainty, limitations, population scope, and implementation implications.

7. Important Theories and Models

Potential-outcomes framework

The Rubin potential-outcomes framework formalizes causal effects through counterfactual outcomes and estimands such as the average treatment effect. It is especially useful for clarifying treatment contrasts and experimental or observational designs.

Structural causal models

Structural causal models describe how variables are generated and use graphs to distinguish observational conditioning from intervention. The intervention operator, often written do(X=x), represents setting X externally rather than merely observing X.

Fixed-effects model

A basic panel specification is Y_it = βX_it + α_i + γ_t + ε_it, where α_i captures time-invariant unit characteristics and γ_t captures common time shocks. The coefficient β is identified from within-unit changes, subject to assumptions about time-varying confounding and model specification.

Multilevel model

A random-intercept model can be written Y_ij = β_0 + β_1X_ij + u_j + ε_ij, where u_j represents group-level variation. A random-slope model permits β_1 to vary across groups. These models are valuable when contextual variation is theoretically meaningful rather than merely a nuisance.

Cox proportional-hazards model

The hazard is h(t|X)=h_0(t)exp(βX). The hazard ratio compares instantaneous event rates, not probabilities or mean survival time. The proportional-hazards assumption should be examined using time interactions or alternative models.

Dynamic time-series models

Autoregressive models express current outcomes as functions of prior outcomes and predictors. Vector autoregression permits reciprocal dynamics among several series. Researchers must address nonstationarity, cointegration, structural breaks, and causal ordering.

8. Practical Applications

Organizations use causal inference to evaluate training, cybersecurity controls, pricing changes, recommendation systems, health programs, and public policies. Panel models can assess whether productivity changes after enterprise software adoption while controlling for stable firm characteristics. Survival models can estimate customer churn or time to security breach. Multilevel models can determine whether employee engagement depends on both individual workload and managerial climate.

Qualitative evidence remains important. Interviews can reveal mechanisms, implementation failures, and unintended effects that average treatment effects conceal. Process tracing and comparative case analysis can complement statistical estimation by testing whether the proposed causal pathway is plausible.

9. Examples

Suppose a university introduces an adaptive learning platform in selected courses. A simple comparison of final grades may be confounded because motivated instructors adopt the platform first. A DAG may identify prior achievement, instructor experience, and course difficulty as confounders. If adoption occurs at different times, a staggered difference-in-differences design may be appropriate, provided treatment timing and pre-trends are carefully addressed.

Consider a firm that introduces remote work. Employees who choose remote work may differ in autonomy, family responsibilities, and job type. Propensity weighting can improve comparability, but unobserved preferences remain a concern. A policy mandate affecting some offices but not others may provide a stronger quasi-experimental design.

For cybersecurity, the outcome may be time to incident rather than whether an incident occurs. Survival methods can incorporate censoring and compare hazards under different security controls. If analysts are nested in teams, multilevel models can separate individual expertise from team-level security culture.

10. Technology and Digital Applications

Modern causal analysis depends on reproducible computational environments. Version-controlled scripts, data dictionaries, workflow automation, and containerized software improve auditability. Statistical platforms can implement matching, weighting, panel estimation, survival analysis, Bayesian hierarchical models, and causal graphs.

Digital platforms generate high-frequency event logs, allowing researchers to study sequences, exposure timing, and heterogeneous treatment effects. However, clickstream data are not automatically valid measures of engagement or intention. Machine-learning models can assist with propensity estimation, heterogeneous-effect discovery, and missing-data prediction, but predictive accuracy does not establish causal validity. Double machine learning and targeted learning can combine flexible nuisance estimation with causal estimation under suitable assumptions.

Privacy-preserving record linkage, differential privacy, secure research environments, and access controls are essential when data combine behavioral, health, employment, or location information.

11. Strategic / Managerial Importance

Causal evidence improves resource allocation by distinguishing interventions that merely correlate with success from those likely to produce it. Longitudinal evidence reveals whether benefits persist, decay, or generate delayed costs. Multilevel analysis helps managers determine whether an organization-wide policy works uniformly or depends on local leadership and context.

Managers should ask: What decision will the evidence inform? Which population is affected? What is the cost of implementation? Are effects practically meaningful? Could an intervention help one group while harming another? These questions connect statistical estimates to governance and strategy.

12. Detailed Case Study

Background

The following fictional case is illustrative. “Northstar Services,” a regional customer-support company, introduced an AI-assisted knowledge system in half of its service centers. The system offered recommended responses and automated article retrieval.

Problem

Senior management wanted to know whether the system improved resolution time without reducing customer satisfaction. Adoption was not randomized: centers with longer queues received priority access. Employees were nested within centers, and outcomes were recorded weekly for eighteen months.

Analysis

A DAG identified queue length as a cause of both adoption and resolution time. Center size, staffing, customer mix, and prior performance were additional confounders. A simple post-adoption comparison was therefore inappropriate. Analysts created a center-by-week panel and specified center and week fixed effects. They examined twelve pre-adoption weeks for evidence of parallel trends and used clustered uncertainty at the center level.

Because adoption occurred at different dates, the team avoided interpreting a single conventional two-way fixed-effects coefficient without testing its weighting structure. Event-study estimates were used to examine effects before and after adoption. Employee-level satisfaction data were analyzed with a multilevel model, allowing center-specific baselines. Missing satisfaction responses were assessed for nonresponse patterns.

Strategy / Solution

The company combined three forms of evidence: quantitative estimates, interviews with agents, and audits of customer complaints. The implementation team corrected an article-ranking problem that disproportionately affected technical queries. Managers also monitored heterogeneous effects by experience level and customer segment.

Outcome

After adjustments, the system reduced average resolution time modestly, with larger benefits for newly hired agents. Customer satisfaction improved in routine cases but declined temporarily for complex cases until the knowledge base was revised. Effects varied substantially by center, suggesting that coaching and local content maintenance were important moderators.

Learning Points

The case illustrates that adoption bias, staggered treatment, clustering, heterogeneous effects, and implementation mechanisms must be considered together. An average effect alone would have concealed both the operational benefit and the customer-service risk.

13. Advantages / Benefits

Causal designs support stronger decisions than descriptive comparisons. Longitudinal models reveal change, persistence, and temporal ordering. Multilevel models use information at several levels and produce more appropriate uncertainty estimates. Combining quantitative and qualitative evidence clarifies both effect magnitude and causal mechanism. Transparent assumptions and sensitivity analyses improve institutional learning.

14. Limitations / Challenges

Observational studies may retain unmeasured confounding. Weak overlap can make estimates depend on extrapolation. Instruments may be invalid or affect only a narrow subgroup. Difference-in-differences can fail when pre-trends differ or treatment effects are staggered. Panel models may be biased by time-varying confounders and dynamic feedback. Survival models require careful treatment of censoring and competing risks. Multilevel models can be unstable with few groups, and ecological or cross-level interpretations can be mistaken. Complex digital data also create measurement, selection, and algorithmic bias.

15. Ethical and Governance Considerations

Causal studies can influence employment, credit, healthcare, education, and access to services. Researchers must obtain appropriate consent or legal authorization, minimize data collection, protect confidentiality, and assess group harms. Automated treatment assignment should be monitored for discrimination. Sensitive attributes should not simply be excluded if doing so prevents fairness assessment.

Governance requires preregistration where feasible, documented analytic decisions, independent review, reproducible code, model cards or methodological reports, and clear responsibility for intervention consequences. Ethical review should consider whether withholding a beneficial intervention is acceptable, whether experimentation creates unequal risk, and whether affected communities can challenge decisions.

16. Current and Emerging Trends

Important developments include causal machine learning for heterogeneous treatment effects, generalized synthetic control methods, Bayesian causal models, mediation analysis, longitudinal targeted learning, and causal discovery supported by domain knowledge. Digital twins and continuous experimentation are expanding in operations and healthcare, although their validity depends on data quality and transportability.

Researchers increasingly combine administrative, sensor, text, and event-log data. Federated analysis and privacy-enhancing computation may permit collaboration without centralizing raw data. There is also growing interest in fairness-aware causal estimands, interference between units, and transportability across populations and settings.

17. Best Practices

1. Define the estimand and intervention before selecting a model.

2. Use a DAG to justify adjustment variables.

3. Prefer randomization when feasible and ethically acceptable.

4. Check overlap, covariate balance, pre-trends, and temporal dependence.

5. Distinguish total, direct, indirect, local, and heterogeneous effects.

6. Model clustering and repeated measures explicitly.

7. Use negative controls, placebo tests, and sensitivity analyses where appropriate.

8. Treat missingness and measurement error as substantive problems.

9. Report effect sizes and uncertainty, not only p-values.

10. Make code, assumptions, data provenance, and deviations auditable.

11. Integrate qualitative evidence to investigate mechanisms and implementation.

12. Match conclusions to the study population and design.

18. Future Scope

Future research will increasingly address interference, adaptive interventions, personalized treatment policies, and causal effects in complex networks. Advances in sensor data and digital experimentation may permit near-real-time evaluation, but privacy and governance will become more important. Better methods are also needed for causal inference with unstructured text, multimodal data, missing-not-at-random processes, and distribution shifts. The central challenge will remain unchanged: ensuring that computational sophistication is anchored in credible causal reasoning.

19. Chapter Summary

Causal, longitudinal, and multilevel inference provide a framework for studying interventions, change, duration, dependence, and context. DAGs clarify assumptions and adjustment choices. Experiments offer strong identification, while matching, propensity scores, instrumental variables, and difference-in-differences provide alternatives when randomization is unavailable. Panel, time-series, survival, and hierarchical models address distinct structures of repeated and nested data. Credible analysis depends on design, assumptions, diagnostics, sensitivity analysis, ethical governance, and transparent interpretation. No model substitutes for a well-defined causal question and a defensible counterfactual.

20. Key Terms

1. Average treatment effect: Mean difference between treated and untreated potential outcomes.

2. Average treatment effect on the treated: Mean causal effect among treated units.

3. Backdoor path: A noncausal path entering treatment through an arrow pointing into treatment.

4. Causal estimand: Precisely defined causal quantity to be estimated.

5. Collider: Variable caused by two variables on a causal path.

6. Confounding: Mixing of treatment effects with effects of common causes.

7. Difference-in-differences: Comparison of outcome changes across treated and comparison groups.

8. Exchangeability: Comparability of potential outcomes across treatment groups, conditional on covariates.

9. Fixed effects: Unit or time effects controlling for unobserved stable characteristics.

10. Hazard: Instantaneous event rate among units still at risk.

11. Instrumental variable: Variable affecting treatment but influencing outcome only through treatment.

12. Intraclass correlation: Share of outcome variance attributable to group-level clustering.

13. Longitudinal data: Repeated observations over time.

14. Multilevel model: Model accounting for observations nested within higher-level groups.

15. Potential outcome: Outcome a unit would experience under a specified treatment condition.

16. Positivity: Presence of a nonzero probability of each treatment level for relevant covariates.

17. Propensity score: Conditional probability of treatment assignment.

18. Survival analysis: Analysis of time until an event, including censoring.

19. Time-varying confounder: Confounder whose value changes over time.

20. Two-stage least squares: Instrumental-variable estimation using treatment prediction in a first stage.

21. Review Questions

Short Answer Questions

1. Distinguish association, prediction, and causation.

2. What is the purpose of a DAG?

3. Define positivity and explain why it matters.

4. What does an intraclass correlation coefficient measure?

5. Why is the parallel-trends assumption important in difference-in-differences?

Long Answer Questions

1. Explain the potential-outcomes framework and its implications for causal identification.

2. Compare matching, propensity-score weighting, instrumental variables, and randomized experiments.

3. Discuss the assumptions and diagnostic procedures for a panel fixed-effects model.

4. Explain how survival analysis handles censoring and competing risks.

5. Compare random-intercept and random-slope multilevel models, including suitable applications.

Analytical / Application Questions

1. A firm introduces cybersecurity training only in departments with recent breaches. Design a causal study, use a DAG to identify confounding, and propose appropriate sensitivity analyses.

2. A policy is implemented at different dates across cities. Explain why a basic two-way fixed-effects model may be problematic and propose a stronger analysis.

3. Employees are nested in teams and observed monthly for one year. Develop an analysis plan for productivity, including time dependence, team effects, missing data, and heterogeneous treatment effects.

22. Multiple Choice Questions with Answers

Question 1

Which condition is central to interpreting a difference-in-differences estimate causally?

A. The treatment must be randomly assigned to individuals

B. The treated and comparison groups must have followed parallel trends absent treatment

C. All covariates must be normally distributed

D. The outcome must be binary

Correct Answer: B. The treated and comparison groups must have followed parallel trends absent treatment

Question 2

What is the primary danger of conditioning on a collider in a causal analysis?

A. It always increases statistical power

B. It removes all measurement error

C. It can create a noncausal association between variables

D. It guarantees exchangeability

Correct Answer: C. It can create a noncausal association between variables

Question 3

What does propensity-score weighting primarily attempt to achieve?

A. Balance measured pre-treatment covariates across treatment groups

B. Eliminate all possible unmeasured confounding

C. Estimate only individual treatment effects

D. Replace the need to define an estimand

Correct Answer: A. Balance measured pre-treatment covariates across treatment groups

Question 4

Which assumption states that an instrumental variable affects the outcome only through treatment?

A. Positivity

B. Consistency

C. Exclusion restriction

D. Proportional hazards

Correct Answer: C. Exclusion restriction

Question 5

In a fixed-effects panel model, identification primarily comes from:

A. Differences between unrelated populations

B. Within-unit changes over time

C. Random assignment of missing values

D. Cross-sectional variance only

Correct Answer: B. Within-unit changes over time

Question 6

What does a hazard ratio in a Cox model compare?

A. Instantaneous event rates between groups

B. Mean outcomes after treatment

C. Total sample sizes across groups

D. Probabilities that are necessarily constant over time

Correct Answer: A. Instantaneous event rates between groups

Question 7

Why are multilevel models appropriate for employees nested within departments?

A. They assume every employee is independent

B. They account for dependence and variation at department level

C. They eliminate the need for sampling

D. They can only analyze binary outcomes

Correct Answer: B. They account for dependence and variation at department level

Question 8

Which statement best describes an average treatment effect on the treated?

A. The effect among units that actually received treatment

B. The effect among units excluded from treatment

C. The effect of measurement error on treatment

D. The average association between two outcomes

Correct Answer: A. The effect among units that actually received treatment

Question 9

A weak instrumental variable is especially problematic because it can:

A. Guarantee perfect balance

B. Produce unstable and biased causal estimates

C. Make treatment assignment completely random

D. Remove the need for an exclusion restriction

Correct Answer: B. Produce unstable and biased causal estimates

Question 10

Why should qualitative evidence sometimes accompany a causal estimate?

A. It automatically proves statistical significance

B. It replaces all quantitative analysis

C. It can clarify mechanisms, implementation, and unintended effects

D. It guarantees absence of confounding

Correct Answer: C. It can clarify mechanisms, implementation, and unintended effects

Quantitative & Qualitative Data Analysis
Chapter 7 of 15