Result Classes
These classes wrap the numerical arrays returned by estimation methods
and provide human-readable output via __repr__ and summary().
ConfintResult
Returned by SW2023Model.confint_asymptotic().
- class sw2023.ConfintResult(phi_hat_ci, r1_ci, r3_ci, se_phi, se_r1, se_r3, alpha)[source]
Bases:
objectAsymptotic confidence intervals from SW2023Model.confint_asymptotic().
- phi_hat_ci
Lower and upper confidence bounds for the frontier phi_hat(z).
- Type:
ndarray, shape (n, 2)
- r1_ci
CI for the first conditional moment r_1(z).
- Type:
ndarray, shape (n, 2)
- r3_ci
CI for the third conditional moment r_3(z).
- Type:
ndarray, shape (n, 2)
- se_phi
Standard errors for phi_hat(z).
- Type:
ndarray, shape (n,)
- se_r1
Standard errors for r_1(z).
- Type:
ndarray, shape (n,)
- se_r3
Standard errors for r_3(z).
- Type:
ndarray, shape (n,)
BootstrapResult
Returned by SW2023Model.bootstrap() and bootstrap_sw().
- class sw2023.BootstrapResult(phi_hat_point, phi_hat_ci, eff_mean_point, eff_mean_ci, eff_individual_point, eff_individual_ci, sigma_eta_point, sigma_eta_ci, B, alpha, n_fail=0)[source]
Bases:
objectBootstrap confidence intervals from SW2023Model.bootstrap() or bootstrap_sw() / bootstrap_panel().
- phi_hat_point
Point estimates of the frontier phi_hat(z).
- Type:
ndarray, shape (n,)
- phi_hat_ci
Bootstrap CI for phi_hat(z).
- Type:
ndarray, shape (n, 2)
- eff_mean_ci
Bootstrap CI for the mean efficiency.
- Type:
ndarray, shape (2,)
- eff_individual_point
Point estimates of individual efficiency scores.
- Type:
ndarray, shape (n,)
- eff_individual_ci
Bootstrap CI for individual efficiency scores.
- Type:
ndarray, shape (n, 2)
- sigma_eta_point
Point estimates of sigma_eta(z).
- Type:
ndarray, shape (n,)
- sigma_eta_ci
Bootstrap CI for sigma_eta(z).
- Type:
ndarray, shape (n, 2)
SignificanceTestResult
Returned by test_r3_significance().
- class sw2023.SignificanceTestResult(statistic, p_value, r3_hat, T_boot, B)[source]
Bases:
objectWild bootstrap significance test result from test_r3_significance().
Tests H0: E(epsilon^3 | Z) = const (spatially uniform inefficiency) against H1: E(epsilon^3 | Z) != const (heterogeneous inefficiency).
- p_value
Bootstrap p-value. Small values (< 0.05) indicate heterogeneous inefficiency; large values indicate the null is not rejected.
- Type:
- r3_hat
Estimated third conditional moment r_hat_3(Z) from the original sample.
- Type:
ndarray, shape (n,)
- T_boot
Bootstrap distribution of the test statistic.
- Type:
ndarray, shape (B,)