Learn R Programming

Causal inference for qualitative outcomes

The causalQual package provides a suite of tools for estimating causal effects when the outcome of interest is qualitative - i.e., multinomial or ordered. Standard causal inference methods such as instrumental variables (IV), regression discontinuity (RD), and difference-in-differences (DiD) are typically designed for numeric outcomes. Their direct application to qualitative outcomes leads to ill-defined estimands, rendering results arbitrary and uninterpretable.

This package implements the framework introduced in Di Francesco and Mellace (2025), shifting the focus to well-defined and interpretable estimands that quantify how treatment affects the probability distribution over outcome categories. The methods remain compatible with conventional research designs, ensuring ease of implementation for applied researchers.


Why use causalQual?

FeatureBenefit
Avoids misleading conclusionsConventional estimands are often undefined or depend on arbitrary outcome coding. causalQual targets interpretable and meaningful estimands.
Provides well-defined estimandsInstead of relying on average effects, causalQual models how treatment shifts probabilities over outcome categories.
Wide applicabilitySupports selection-on-observables, IV, RD, and DiD.
Extensible and open-sourceActively developed with planned support for staggered adoption, fuzzy regression discontinuity, and more.

Copy Link

Version

Install

install.packages('causalQual')

Monthly Downloads

127

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Riccardo Di Francesco

Last Published

February 24th, 2025

Functions in causalQual (1.0.0)

summary.causalQual

Summary Method for causalQual Objects
rename_latex

Renaming Variables for LATEX Usage
softmax

Softmax function.
plot.causalQual

Plot Method for causalQual Objects
causalQual_did

Causal Inference for Qualitative Outcomes under Difference-in-Differences
print.causalQual

Print Method for causalQual Objects
causalQual_iv

Causal Inference for Qualitative Outcomes under Instrumental Variables
generate_qualitative_data_did

Generate Qualitative Data (Difference-in-Differences)
causalQual_soo

Causal Inference for Qualitative Outcomes under Selection-on-Observables
generate_qualitative_data_iv

Generate Qualitative Data (Instrumental Variables)
causalQual_rd

Causal Inference for Qualitative Outcomes under Regression Discontinuity
generate_qualitative_data_rd

Generate Qualitative Data (Regression Discontinuity)
generate_qualitative_data_soo

Generate Qualitative Data (Selection-on-Observables)