Skip to contents

All functions

approx_median()
Disclosure-safe "approximate median" (average of 5 central sorted values)
build_accounts_indicators()
Build the firm-year analytical panel and its derived indicators
compute_characteristics()
Descriptive characteristics of scaler and non-scaler populations
compute_contribution()
Job/turnover creation-destruction accounting by firm sample
compute_persistence()
Growth trajectories before/after a scaling event ("transitions" and "evolutions")
compute_predictors()
Classify scalers by pre-period predictor quartile and regress scaling on them
config_scaleup()
Build a Scale-Up pipeline configuration
country_patches
Country-specific data patches
cut_stata()
Bin a numeric variable into intervals (Stata's egen ... = cut(x), at(...))
decode_category()
Decode a category column to its readable string label
dominance_share()
Dominance-rule concentration share (disclosure-control statistic)
exchange_rates
Annual average Eurostat exchange rates
first_occurrence_flag()
Flag a firm's chronologically first occurrence of a 0/1 event
has_column()
Check whether a column exists and is non-empty in a data frame
panel_diff1()
First-difference panel operator (Stata's D1.var)
panel_lag()
Gap-aware panel lag (Stata's Ln.var, e.g. l3.employment)
panel_lead()
Gap-aware panel lead (Stata's Fn.var, e.g. f3.employment)
panel_sdiff()
n-period difference panel operator (Stata's Sn.var, e.g. S3.employment)
percentile_stata()
Percentile, using Stata's algorithm (Hyndman & Fan "Type 2")
quartile_bin()
Grouped equal-frequency quartile bins (Stata's xtile ..., nq(4))
round_half_up()
Round half away from zero (Stata's round() convention)
run_scaleup_pipeline()
Run the full Scale-Up pipeline, reading and writing files on disk
stata_num()
Prepare a numeric vector for Stata-style comparison against a constant
stata_replace()
Stata-style conditional replace, preserving the existing value on NA
tl3_typology
TL3/NUTS3 region urbanisation typology
winsorize_both()
Winsorize both tails to NA
winsorize_upper()
Winsorize the upper tail to NA