sw2023

User Guide

  • Installation
    • Requirements
    • From PyPI
    • From Source
    • Stata Integration
  • Quick Start
    • Cross-Sectional Model
    • Asymptotic Confidence Intervals
    • Bootstrap Confidence Intervals
    • Wild Bootstrap Significance Test
    • Diagnostic Plots
    • Panel Model (4-Component)
  • Methodology
    • The SW(2023) Estimator
    • Rotation Transform
    • Conditional Moment Estimation (LLLS)
    • Inefficiency Estimation
    • JLMS Efficiency
    • 4-Component Panel Extension
    • References

API Reference

  • Cross-Sectional Model
    • SW2023Model
      • SW2023Model
        • SW2023Model.__repr__()
        • SW2023Model.fit()
        • SW2023Model.summary()
        • SW2023Model.confint_asymptotic()
        • SW2023Model.predict_at()
        • SW2023Model.results_dataframe()
        • SW2023Model.plot_efficiency()
        • SW2023Model.plot_frontier()
        • SW2023Model.plot_diagnostics()
        • SW2023Model.bootstrap()
  • Panel Model
    • PanelSW2023
      • PanelSW2023
        • PanelSW2023.__repr__()
        • PanelSW2023.fit()
        • PanelSW2023.summary()
        • PanelSW2023.results_dataframe()
  • Result Classes
    • ConfintResult
      • ConfintResult
        • ConfintResult.phi_hat_ci
        • ConfintResult.r1_ci
        • ConfintResult.r3_ci
        • ConfintResult.se_phi
        • ConfintResult.se_r1
        • ConfintResult.se_r3
        • ConfintResult.alpha
        • ConfintResult.__repr__()
        • ConfintResult.summary()
    • BootstrapResult
      • BootstrapResult
        • BootstrapResult.phi_hat_point
        • BootstrapResult.phi_hat_ci
        • BootstrapResult.eff_mean_point
        • BootstrapResult.eff_mean_ci
        • BootstrapResult.eff_individual_point
        • BootstrapResult.eff_individual_ci
        • BootstrapResult.sigma_eta_point
        • BootstrapResult.sigma_eta_ci
        • BootstrapResult.B
        • BootstrapResult.alpha
        • BootstrapResult.n_fail
        • BootstrapResult.__repr__()
        • BootstrapResult.summary()
    • SignificanceTestResult
      • SignificanceTestResult
        • SignificanceTestResult.statistic
        • SignificanceTestResult.p_value
        • SignificanceTestResult.r3_hat
        • SignificanceTestResult.T_boot
        • SignificanceTestResult.B
        • SignificanceTestResult.__repr__()
        • SignificanceTestResult.summary()
  • Bootstrap Functions
    • bootstrap_sw()
    • bootstrap_panel()
    • test_r3_significance()
  • Visualization
    • Cross-Sectional
      • plot_efficiency_dist()
      • plot_efficiency_rank()
      • plot_frontier_1d()
      • plot_residuals()
      • plot_diagnostics()
    • Panel
      • plot_panel_trend()
      • plot_decomposition()
  • Bandwidth Selection
    • bandwidth_loocv_product()
    • bandwidth_loocv()
    • bandwidth_silverman()

More

  • Replication
    • Setup
    • Run
    • Reproducibility Notes
  • Changelog
    • 0.3.2 (2026)
    • 0.3.1 (2025)
sw2023
  • Overview: module code

All modules for which code is available

  • sw2023.core.bandwidth
  • sw2023.core.bootstrap
  • sw2023.core.model
  • sw2023.core.results
  • sw2023.core.visualize
  • sw2023.panel.four_component

© Copyright 2026, Choonjoo Lee.

Built with Sphinx using a theme provided by Read the Docs.