Skip to contents

A simulated data set of 250 firms observed for 20 years, used in the examples and the vignette. It is a variant of the simulated example in Lonati and Wulff (2026, Table 1). The outcome y depends on the predictor of interest x, whose true effect is 0.25, and on two firm-level characteristics of equal strength: c, which is observed, and q, which is meant to be omitted from the analysis. Because q also drives x, a regression of y on x and c overstates the effect of x. The within-firm components of x and of the disturbance are persistent (first-order autoregressive with coefficient 0.9), so standard errors have to be clustered by firm.

Usage

firms

Format

A data frame with 5,000 rows and 6 columns:

firm

firm identifier, 1 to 250 (the cluster)

year

year within firm, 1 to 20

y

outcome

x

predictor of interest; its true effect on y is 0.25

c

observed firm-level control

q

unobserved firm-level variable, omitted in the analysis

Details

The variable q is included so that every sensitivity result can be checked against the regression that contains it. "An omitted variable as strong as c" (benchmark_covariates = "c", kd = 1) is, by construction, a variable like q.

The data were generated as follows (the script is data-raw/firms.R in the package repository; the Stata command ships the same data as firms.dta): q and c are independent standard normal draws per firm; v and u are independent first-order autoregressive series within each firm with persistence 0.9 and stationary variance 1; x = 0.5 q + 0.5 c + v and y = 0.25 x + 0.5 q + 0.5 c + u. The draws of q, v and u are those of seed 116 of the paper's script. Compared with the paper's Table 1, the control c is added so that the benchmark approach applies, and the coefficients of c and q are 0.5 instead of 1 and 0.7.

References

Lonati, S., & Wulff, J. N. (2026). Why you should not use the ITCV with robust standard errors (and what to do instead). Academy of Management Proceedings, 2026(1). doi:10.5465/AMPROC.2026.247bp

Examples

data("firms", package = "bootmakr")
head(firms)
#>   firm year         y         x          c         q
#> 1    1    1 1.1135241 0.7462263 -0.3820026 0.6451423
#> 2    1    2 0.5718906 0.5223299 -0.3820026 0.6451423
#> 3    1    3 0.6579784 0.8940660 -0.3820026 0.6451423
#> 4    1    4 1.2859237 1.2648760 -0.3820026 0.6451423
#> 5    1    5 1.3447777 1.2004796 -0.3820026 0.6451423
#> 6    1    6 0.8935023 0.8371407 -0.3820026 0.6451423

# The regression that omits q overstates the effect of x (true value 0.25);
# the one that includes q recovers it.
coef(lm(y ~ x + c, data = firms))["x"]
#>         x 
#> 0.4445283 
coef(lm(y ~ x + c + q, data = firms))["x"]
#>         x 
#> 0.2286068