pretest-did 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. pretest_did-0.1.0/CHANGELOG.md +59 -0
  2. pretest_did-0.1.0/LICENSE +661 -0
  3. pretest_did-0.1.0/MANIFEST.in +15 -0
  4. pretest_did-0.1.0/PKG-INFO +449 -0
  5. pretest_did-0.1.0/README.md +403 -0
  6. pretest_did-0.1.0/image/README/image.png +0 -0
  7. pretest_did-0.1.0/pyproject.toml +75 -0
  8. pretest_did-0.1.0/setup.cfg +4 -0
  9. pretest_did-0.1.0/src/pretest/__init__.py +178 -0
  10. pretest_did-0.1.0/src/pretest/__main__.py +7 -0
  11. pretest_did-0.1.0/src/pretest/_compat.py +15 -0
  12. pretest_did-0.1.0/src/pretest/_display.py +463 -0
  13. pretest_did-0.1.0/src/pretest/api.py +654 -0
  14. pretest_did-0.1.0/src/pretest/cli.py +1542 -0
  15. pretest_did-0.1.0/src/pretest/confidence_intervals.py +290 -0
  16. pretest_did-0.1.0/src/pretest/covariance.py +265 -0
  17. pretest_did-0.1.0/src/pretest/critical_value.py +127 -0
  18. pretest_did-0.1.0/src/pretest/data_estimators.py +2131 -0
  19. pretest_did-0.1.0/src/pretest/dgp.py +334 -0
  20. pretest_did-0.1.0/src/pretest/estimators.py +471 -0
  21. pretest_did-0.1.0/src/pretest/kappa.py +96 -0
  22. pretest_did-0.1.0/src/pretest/m_sensitivity.py +236 -0
  23. pretest_did-0.1.0/src/pretest/m_sensitivity_plots.py +139 -0
  24. pretest_did-0.1.0/src/pretest/monte_carlo.py +249 -0
  25. pretest_did-0.1.0/src/pretest/options.py +56 -0
  26. pretest_did-0.1.0/src/pretest/pipeline.py +474 -0
  27. pretest_did-0.1.0/src/pretest/plotting.py +815 -0
  28. pretest_did-0.1.0/src/pretest/py.typed +1 -0
  29. pretest_did-0.1.0/src/pretest/replay_harness.py +3563 -0
  30. pretest_did-0.1.0/src/pretest/replay_packets.py +65 -0
  31. pretest_did-0.1.0/src/pretest/replay_summary.py +4450 -0
  32. pretest_did-0.1.0/src/pretest/result_schema.py +1586 -0
  33. pretest_did-0.1.0/src/pretest/severity.py +390 -0
  34. pretest_did-0.1.0/src/pretest/severity_se.py +153 -0
  35. pretest_did-0.1.0/src/pretest/simulation.py +1156 -0
  36. pretest_did-0.1.0/src/pretest/validation.py +529 -0
  37. pretest_did-0.1.0/src/pretest_did.egg-info/PKG-INFO +449 -0
  38. pretest_did-0.1.0/src/pretest_did.egg-info/SOURCES.txt +67 -0
  39. pretest_did-0.1.0/src/pretest_did.egg-info/dependency_links.txt +1 -0
  40. pretest_did-0.1.0/src/pretest_did.egg-info/entry_points.txt +2 -0
  41. pretest_did-0.1.0/src/pretest_did.egg-info/requires.txt +24 -0
  42. pretest_did-0.1.0/src/pretest_did.egg-info/top_level.txt +1 -0
  43. pretest_did-0.1.0/tests/fixtures/severity_kernel_cases.yaml +150 -0
  44. pretest_did-0.1.0/tests/fixtures/validation_cases.yaml +234 -0
  45. pretest_did-0.1.0/tests/test_boundary_stress.py +123 -0
  46. pretest_did-0.1.0/tests/test_built_wheel_contract.py +2689 -0
  47. pretest_did-0.1.0/tests/test_cli_contract.py +7607 -0
  48. pretest_did-0.1.0/tests/test_confidence_interval_shared_input_guard.py +215 -0
  49. pretest_did-0.1.0/tests/test_coverage_theorem2.py +81 -0
  50. pretest_did-0.1.0/tests/test_data_estimators.py +4309 -0
  51. pretest_did-0.1.0/tests/test_dataset_profile_numeric_sequence_guard.py +65 -0
  52. pretest_did-0.1.0/tests/test_dgp.py +298 -0
  53. pretest_did-0.1.0/tests/test_display.py +464 -0
  54. pretest_did-0.1.0/tests/test_m_sensitivity.py +273 -0
  55. pretest_did-0.1.0/tests/test_new_features.py +498 -0
  56. pretest_did-0.1.0/tests/test_package_metadata_contract.py +1820 -0
  57. pretest_did-0.1.0/tests/test_paper_math_contract.py +1180 -0
  58. pretest_did-0.1.0/tests/test_performance.py +59 -0
  59. pretest_did-0.1.0/tests/test_pipeline_api.py +926 -0
  60. pretest_did-0.1.0/tests/test_plotting.py +124 -0
  61. pretest_did-0.1.0/tests/test_prop99_overall_capture.py +122 -0
  62. pretest_did-0.1.0/tests/test_prop99_replay_harness.py +8142 -0
  63. pretest_did-0.1.0/tests/test_property_based.py +96 -0
  64. pretest_did-0.1.0/tests/test_pytest_config_contract.py +133 -0
  65. pretest_did-0.1.0/tests/test_replay_summary_api.py +9065 -0
  66. pretest_did-0.1.0/tests/test_replication_outputs_contract.py +1870 -0
  67. pretest_did-0.1.0/tests/test_result_schema.py +5118 -0
  68. pretest_did-0.1.0/tests/test_severity_kernel_contract.py +3536 -0
  69. pretest_did-0.1.0/tests/test_validation_contract.py +673 -0
@@ -0,0 +1,59 @@
1
+ # Changelog
2
+
3
+ All notable changes to `pretest` will be documented in this file.
4
+
5
+ Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
+ Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
7
+
8
+ ## [0.1.0] - 2025-12-22
9
+
10
+ ### Added
11
+
12
+ **Core functionality**
13
+
14
+ - DID estimators for δ̂ₜ and ν̂ₜ (Section 2.1)
15
+ - Severity measurement with *p*-norm, *p* ∈ [1, ∞] (Section 3.1)
16
+ - κ constant with closed-form solutions (Section 3.2, Proposition 1)
17
+ - ψ function for Monte Carlo critical values (Section 5.1)
18
+ - Conditionally valid confidence intervals (Section 5.1, Theorem 2)
19
+
20
+ **Stata interface**
21
+
22
+ - Complete command syntax with required and optional arguments
23
+ - Formatted output display following Stata conventions
24
+ - Comprehensive return values in `e()`
25
+ - Event study visualization
26
+ - SMCL help documentation (`help pretest`)
27
+
28
+ **Python package**
29
+
30
+ - Releasable `pretest` package with a typed public API and console script
31
+ - Stata-style command parser, dataset validation, severity, kappa, confidence
32
+ interval, and high-level `compute_pretest_snapshot(...)` helpers
33
+ - Monte Carlo simulation APIs including `compute_psi(...)`,
34
+ `compute_critical_value(...)`, `simulate_coverage(...)`, and
35
+ `simulate_coverage_from_covariance(...)`
36
+ - Public Prop99 records-to-snapshot handoff plus local fixed-reference CLI
37
+ helpers for inspecting bounded same-case comparison metadata
38
+ - Prop99 overall reference metadata now keeps `capture_ready: true`,
39
+ `graph-exported`, and `numeric_fields_promoted` attached to the captured
40
+ same-case metadata. The bundled Python split documents are record-backed:
41
+ deterministic estimator fields match the companion Stata capture, while
42
+ conditional interval bounds remain stream-specific because the Monte Carlo
43
+ critical value is computed by the Python RNG stream.
44
+
45
+ **Two violation modes**
46
+
47
+ - Iterative (default): CI = δ̄̂ ± {κ · Ŝₚᵣₑ + f(α, Σ̂) / √n}
48
+ - Overall (Appendix C): CI = δ̄̂ ± {Ŝᐩₚᵣₑ + fᐩ(α, Σ̂ᐩ) / √n}
49
+
50
+ **Additional features**
51
+
52
+ - Stata command support for cluster-robust standard errors; the Python records
53
+ helper does not implement cluster covariance
54
+ - Monte Carlo critical-value simulation support via the `simulate()` option
55
+
56
+ ### Requirements
57
+
58
+ - Stata 17.0 or later
59
+ - Python 3.11 or later for the `pretest` package