Package: ssBartik 0.2.1

Takuma Iwasaki

ssBartik: End-to-End Pipeline for Shift-Share (Bartik) Instrumental Variables

Construction, diagnostics, estimation, exposure-robust inference and publication-ready visualisation for shift-share (Bartik) instrumental variable designs, in one consistent workflow. Organised around the two identification routes of the modern literature. The exogenous share approach refers to Goldsmith-Pinkham, Sorkin and Swift (2020) <doi:10.1257/aer.20181047> and the exogenous shift approach refers to Borusyak, Hull and Jaravel (2022) <doi:10.1093/restud/rdab030> and Adao, Kolesar and Morales (2019) <doi:10.1093/qje/qjz025>. Wraps 'ShiftShareSE' for exposure-robust inference when available.

Authors:Takuma Iwasaki [aut, cre]

ssBartik_0.2.1.tar.gz
ssBartik_0.2.1.zip(r-4.7-any)ssBartik_0.2.1.zip(r-4.6-any)ssBartik_0.2.1.zip(r-4.5-any)
ssBartik_0.2.1.tgz(r-4.6-any)ssBartik_0.2.1.tgz(r-4.5-any)
ssBartik_0.2.1.tar.gz(r-4.7-any)ssBartik_0.2.1.tar.gz(r-4.6-any)
ssBartik_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ssBartik/json (API)

# Install 'ssBartik' in R:
install.packages('ssBartik', repos = c('https://takuma1102.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/takuma1102/ssbartik/issues

Pkgdown/docs site:https://takuma1102.github.io

On CRAN:

Conda:

3.30 score 2 scripts 174 downloads 28 exports 17 dependencies

Last updated from:69d1d2f8da. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK118
source / vignettesOK159
linux-releaseOK110
macos-releaseOK162
macos-oldrelOK222
windows-develOK82
windows-releaseOK66
windows-oldrelOK83
wasm-releaseOK85

Exports:autoplotssb_aggregatessb_designssb_drop_topssb_equivalencessb_estimatessb_first_stagessb_loossb_overidssb_pipelinessb_placebossb_plot_cissb_plot_loossb_plot_overidssb_plot_rissb_plot_rotembergssb_plot_shocksssb_pretrendssb_recenterssb_rissb_rotembergssb_share_balancessb_shock_balancessb_shock_ivssb_shock_summaryssb_simulatessb_weight_summaryssbartik

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Render a drop-top-share-instruments comparison as LaTeX or Markdownformat.ssb_drop_top
Render the estimate / standard-error table as LaTeX or Markdownformat.ssb_estimate
Render a leave-one-out table as LaTeX or Markdownformat.ssb_loo
Render an overidentification test as LaTeX or Markdownformat.ssb_overid
Render the Rotemberg-weight table as paste-ready LaTeX or Markdownformat.ssb_rotemberg
Render a shock-balance test as LaTeX or Markdownformat.ssb_shock_balance
Render a shock-exposure summary as LaTeX or Markdownformat.ssb_shocks
Render a Rotemberg-weight summary as LaTeX or Markdownformat.ssb_weight_summary
Render the Rotemberg-weight table as a compact booktabs figureplot.ssb_rotemberg
Aggregate a shift-share design to the shock (shifter) levelssb_aggregate
Define a shift-share (Bartik) IV designssb_design
Re-estimate after dropping the top-weight sectorsssb_drop_top
Check the location-level / shock-level equivalencessb_equivalence
Estimate a shift-share IV regression with several confidence intervalsssb_estimate
First-stage strength: standard and exposure-robust (shock-level) Fssb_first_stage
Leave-one-sector-out sensitivityssb_loo
Overidentification test across the share instruments (Sargan-Hansen)ssb_overid
Run the full shift-share analysis pipelinessb_pipeline
Placebo-outcome testssb_placebo
Plot the confidence-interval comparisonssb_plot_ci
Leave-one-out sensitivity plotssb_plot_loo
Overidentification dispersion plotssb_plot_overid
Randomization-inference plotssb_plot_ri
Plot Rotemberg weights (canonical GPSS figure)ssb_plot_rotemberg
Exposure-concentration (Lorenz) plotssb_plot_shocks
Pre-trend testssb_pretrend
Recenter the shocks (Borusyak & Hull)ssb_recenter
Randomization-inference (placebo-shock) testssb_ri
Rotemberg weights for a Bartik instrumentssb_rotemberg
Share balance (exogenous-shares route)ssb_share_balance
Shock-level balance testssb_shock_balance
Shock-level IV estimate with exposure-robust standard errorsssb_shock_iv
Shock summary: effective number of shocks and exposure concentrationssb_shock_summary
Render a result table as an image (PNG or PDF)plot.ssb_drop_top plot.ssb_estimate plot.ssb_loo plot.ssb_overid plot.ssb_weight_summary ssb_table_image
Rotemberg-weight summary and correlations (GPSS diagnostic table)ssb_weight_summary
One-call shift-share analysisssbartik