← Investment

Capital Expenditure

Capital spending scaled by total assets. The standard investment measure.

Textbook formula: Capital Expenditures / Total Assets
99
replication packages compute it
13
distinct measurements, written 53 ways
47%
of packages read winsorize or trim it

How the code actually computes it

Each row is one measurement. The many ways code writes a lagged value are one measurement, quarterly items are the annual measurement at quarterly frequency, and percent / log / rescaling are tags, not new measurements. Open a row for the spellings, each shown as written in its example.

Capital expenditure / total assets 51 packages
annual 46 · quarterly 5 · 9 spellingslog · 1
Spelling in the code, as writtenFrequencyPackages
capx/at annual40
capxq/atq quarterly3
capx/assets annual2
capxv/at annual2
(dcapxy)/atq1 quarterly1
capx/asset annual1
capxy/atq quarterly1
gross_inv/tot_assets annual1
log(capx/at)log annual1
g   capex_at            = capx/at
Capital expenditure / lagged total assets 32 packages
annual 31 · quarterly 1 · 15 spellings
Spelling in the code, as writtenFrequencyPackages
capx/L.at annual17
capx/l.atq mixed3
capx/lagat annual3
capx/at_lag annual2
capx /lag_at annual2
(capx)/l.at annual1
capx/l12.at annual1
capx / l1_at annual1
capx/l.asset annual1
capx/L1.assets annual1
capx/lagged_at annual1
capx/shift(at, 1, "lag") annual1
capx / tot_assets_lag1 annual1
capxq/l.atq quarterly1
capxy_adjusted/at[_n-1] mixed1
Example: stata · 01_Data.do:597 · pkg 257
gen INV = capx/L.at                         // Capex (Investment 1)
Capital expenditure / net PP&E 12 packages
annual 11 · quarterly 1 · 4 spellings
Spelling in the code, as writtenFrequencyPackages
capx/ppent annual9
(capx/ppent) annual1
capxv/ppent annual1
dcapxy/ppentq1 quarterly1
gen itok = capxv/ppent
Capital expenditure / lagged net PP&E 8 packages
annual 8 · quarterly 1 · 5 spellings
Spelling in the code, as writtenFrequencyPackages
capx/l.ppent annual6
capx/lag_ppent annual2
capx/l.ppentq mixed1
capx/ppent_l1 annual1
capxq/l1.ppentq quarterly1
Example: stata · Table B6.do:68 · pkg 150960
gen capexppe = capx/l.ppent
Capital expenditure / sales 7 packages
annual 6 · quarterly 1 · 5 spellingsused lagged · 1
Spelling in the code, as writtenFrequencyPackages
capx/sale annual4
capital_exp/sale annual1
capx/sales annual1
capxy / saleq quarterly1
l.capx/l.saleused lagged annual1
gen capx_sale=capx/sale
Capital expenditure / lagged gross PP&E 6 packages
annual 6 · quarterly 0 · 3 spellings
Spelling in the code, as writtenFrequencyPackages
capx/l.ppegt annual5
capx/lppe annual1
capxy/lppe mixed1
gen TRAD_capx = capx/l.ppegt
Capital expenditure / gross PP&E 5 packages
annual 5 · quarterly 0 · 3 spellings
Spelling in the code, as writtenFrequencyPackages
capx/ppegt annual4
(capx)/(ppegt) annual1
capx/lagppegt annual1
gen inv =capx/ppegt
(capital expenditure − sale of PP&E) / lagged total assets 3 packages
annual 3 · quarterly 0 · 2 spellings
Spelling in the code, as writtenFrequencyPackages
inv/l1at annual2
(capx-sppe)/l.at annual1
Example: stata · 0_Sample_Creation.do:30 · pkg 14110
gen capx_sppe_at=(capx-sppe)/l.at
(capital expenditure − sale of PP&E) / lagged gross PP&E 2 packages
annual 2 · quarterly 0 · 1 spelling
Spelling in the code, as writtenFrequencyPackages
inv/l1ppegt annual2
Example: stata · Clean_data.do:124 · pkg 96759
gen inv_rate = inv/l1ppegt
(capital expenditure − sale of PP&E) / total assets 2 packages
annual 2 · quarterly 0 · 2 spellings
Spelling in the code, as writtenFrequencyPackages
(capx-sppe)/at annual1
inv / assets annual1
Example: stata · LZZ_JAR_Code.do:47 · pkg 12513
gen capex=(capx-sppe)/at
Capital expenditure / revenue 2 packages
annual 1 · quarterly 1 · 2 spellings
Spelling in the code, as writtenFrequencyPackages
capx/revt annual1
comp4['capxy']/comp4['revtq'] quarterly1
comp4['Investment'] = comp4['capxy']/comp4['revtq']
(capital expenditure − sale of PP&E) / lagged net PP&E 1 package
annual 1 · quarterly 0 · 1 spelling
Spelling in the code, as writtenFrequencyPackages
inv/lag_ppent annual1
gen inv_k = inv/lag_ppent
(mean(capital expenditure)) / (mean(total assets)) 1 package
annual 1 · quarterly 0 · 1 spellinglog · 1
Spelling in the code, as writtenFrequencyPackages
log(capx_avg/at_avg)log annual1
gen capxat = log(capx_avg/at_avg)

Missing observations

Among the 99 of 99 packages we have read: what the code does when this measure, or an input it is built from, is missing. A package can do more than one.

32 · 32%
Drop the observation
rows with the measure or an input missing are deleted
at (39), capx (15), atq (11), ppent (9), tot_assets (6)
drop if at==.
8 · 8%
Set missing to 0
an imputation: missing read as zero (typical for R&D)
capx (16), sale (2), sppe (1), capxat (1)
replace sale = 0 if missing(sale)
4 · 4%
Fill from elsewhere
an alternative definition, another source, a carried or interpolated value
at (4), capx (1)
replace at = lt+seq if at==.
62 · 63%
Nothing explicit
missing values fall out in estimation (listwise)

Outliers: winsorizing and trimming

47 of the 99 packages we have read (47%) winsorize or trim this variable — 3 of them trim (delete) rather than winsorize; 9 do it within groups (by year, typically). The rest leave it as computed.

Cuts are percentiles (1/99 = the 1st and 99th). "default cuts" = the command's default, e.g. winsor2 uses 1/99. A package that cuts the variable two ways counts once under each.

Used as outcome vs control

Of the packages that compute this measure and put its variable in a model, how many estimate it as the outcome (dependent variable) and how many use it as a regressor (a control, or the variable of interest) — in all their estimations, and within each design's models. A package can do both; one count per package.

modelspackages outcome ▮ vs regressor ▮as outcomeas regressor
all estimations 33
58% · 19
176 models
4 outcome models in the code
52% · 17
666 models
4 regressor models in the code
Difference-in-differences 2
50% · 1
5 models
1 outcome model in the code
50% · 1
10 models
1 regressor model in the code
  • ESG Shocks in Global Supply Chains Review of Financial Studies 2026 · pkg 266
    qui eststo: reghdfe Dtrade  treatpost  post  $x  if poissonsample==1,ab(pair indyear case  ) cl(case#shppanjivaid)
    As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
    qui eststo: reghdfe Dtrade treatpost post size mtb lev rd invest cash if poissonsample==1,ab(pair indyear case ) cl(case#shppanjivaid)
Instrumental variables 5
80% · 4
42 models
4 outcome models in the code
20% · 1
3 models
1 regressor model in the code
  • Anatomy of Corporate Borrowing Constraints Quarterly Journal of Economics 2021 · pkg 7457
    main/Table5.do:57 · l(0/2).capx_at
    eststo: xi: ivreg2  f2`item1'  (f2ebitda_at = opt ) l(0/2).`item1'    i.ind   `control'  if e(sample) ,  first cluster(ind)  partial(i.ind)
    As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
    eststo: xi: ivreg2 f2capx_at (f2ebitda_at = opt ) l(0/2).capx_at i.ind f2.sale_at l(0/2).ebitda_at Q ocf_at lr12 cash_at lev1 ppent_at invt_at dp_at lnsize if e(sample) , first cluster(ind) partial(i. …
Matching 1
0% · 0
0 models
100% · 1
1 models
1 regressor model in the code
Synthetic control 1
100% · 1
2 models
1 outcome model in the code
0% · 0
0 models
Panel fixed effects 16
31% · 5
34 models
4 outcome models in the code
69% · 11
225 models
4 regressor models in the code

A lag of the outcome on its own right-hand side (roa on L.roa) is not counted as a regressor use. A measure found by its estimation, formula or data source (a CAR summed over an event window, a beta kept from a regression, a KZ index) is looked up by the variable that code produces (car126d_ff4, beta); a generic output such as _rmse or resid is not. Designs are the recipe designs; "all estimations" covers every model in the package.

As the outcome (dependent variable)
In those models, counted in packages:
Fixed effects: gvkey (10), fyear (3), year (3), country_x_year (1), countryxyearfe (1), cyear (1)
Clustering: gvkey (9), cyi (1), firm_id (1), firmfe (1), fyear (1), gvkey2 (1)
Estimators: panel_fe (12), ols (10), iv (4), did (1), synthetic_control (1)
As a regressor (control or variable of interest)
In those models, counted in packages:
Fixed effects: year (7), fyear (6), gvkey (6), agenda_n (1), au (1), case (1)
Clustering: gvkey (6), permno (3), sic (2), year (2), case#permno (1), case#shppanjivaid (1)
Estimators: panel_fe (15), ols (6), count (4), binary (1), gmm (1), iv (1)

Foundational works

What the papers whose code computes this measure cite most (share of those papers citing each).

Papers whose code computes it