Package: ssBartik 0.1.0

Takuma Iwasaki

ssBartik: An 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: exogenous shares (Goldsmith-Pinkham, Sorkin and Swift, 2020, <doi:10.1257/aer.20181047>) with Rotemberg-weight diagnostics, and exogenous shifts (Borusyak, Hull and Jaravel, 2022, <doi:10.1093/restud/rdab030>; Adao, Kolesar and Morales, 2019) with shock-level diagnostics and AKM/AKM0 standard errors. Wraps 'ShiftShareSE' for exposure-robust inference when available.

Authors:Takuma Iwasaki [aut, cre]

ssBartik_0.1.0.tar.gz
ssBartik_0.1.0.zip(r-4.7)ssBartik_0.1.0.zip(r-4.6)ssBartik_0.1.0.zip(r-4.5)
ssBartik_0.1.0.tgz(r-4.6-any)ssBartik_0.1.0.tgz(r-4.5-any)
ssBartik_0.1.0.tar.gz(r-4.7-any)ssBartik_0.1.0.tar.gz(r-4.6-any)
ssBartik_0.1.0.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:

2.00 score 2 scripts 27 exports 17 dependencies

Last updated from:30e0544e07. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK129
source / vignettesOK173
linux-release-x86_64OK175
macos-release-arm64OK80
macos-oldrel-arm64OK81
windows-develOK81
windows-releaseOK87
windows-oldrelOK82
wasm-releaseOK113

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_weight_summaryssbartik

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Render a drop-top-shocks 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 shocksssb_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 (effective) Fssb_first_stage
Leave-one-sector-out sensitivityssb_loo
Overidentification / cross-instrument homogeneity testssb_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 estimatessb_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