kernelmix 0.3.0__tar.gz → 0.3.1__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 (116) hide show
  1. {kernelmix-0.3.0 → kernelmix-0.3.1}/CHANGELOG.md +7 -4
  2. {kernelmix-0.3.0 → kernelmix-0.3.1}/CITATION.cff +1 -1
  3. {kernelmix-0.3.0 → kernelmix-0.3.1}/PKG-INFO +16 -16
  4. {kernelmix-0.3.0 → kernelmix-0.3.1}/README.md +15 -15
  5. kernelmix-0.3.1/docs/installation.md +23 -0
  6. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/manual.pdf +0 -0
  7. {kernelmix-0.3.0 → kernelmix-0.3.1}/pyproject.toml +1 -1
  8. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/__init__.py +1 -1
  9. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix.egg-info/PKG-INFO +16 -16
  10. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/build_manual.py +3 -0
  11. kernelmix-0.3.0/docs/installation.md +0 -19
  12. {kernelmix-0.3.0 → kernelmix-0.3.1}/CONTRIBUTING.md +0 -0
  13. {kernelmix-0.3.0 → kernelmix-0.3.1}/LICENSE +0 -0
  14. {kernelmix-0.3.0 → kernelmix-0.3.1}/MANIFEST.in +0 -0
  15. {kernelmix-0.3.0 → kernelmix-0.3.1}/NOTICE +0 -0
  16. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/airquality.md +0 -0
  17. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/api.md +0 -0
  18. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/assets/mathjax-config.js +0 -0
  19. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/assets/style.css +0 -0
  20. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/citation.md +0 -0
  21. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/data/airquality-provenance.json +0 -0
  22. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/data/airquality.csv +0 -0
  23. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/development.md +0 -0
  24. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/faq.md +0 -0
  25. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/airquality.json +0 -0
  26. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/airquality.pdf +0 -0
  27. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/airquality.png +0 -0
  28. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/count-survival.csv +0 -0
  29. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/count-survival.pdf +0 -0
  30. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/count-survival.png +0 -0
  31. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-availability.csv +0 -0
  32. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-availability.json +0 -0
  33. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-availability.pdf +0 -0
  34. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-availability.png +0 -0
  35. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-diagnostics.json +0 -0
  36. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-diagnostics.pdf +0 -0
  37. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-diagnostics.png +0 -0
  38. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-observed.csv +0 -0
  39. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-observed.json +0 -0
  40. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-observed.pdf +0 -0
  41. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-observed.png +0 -0
  42. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-parameters.json +0 -0
  43. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-parameters.pdf +0 -0
  44. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-parameters.png +0 -0
  45. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-support.json +0 -0
  46. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-support.pdf +0 -0
  47. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/ozone-support.png +0 -0
  48. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/response.csv +0 -0
  49. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/response.pdf +0 -0
  50. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/figures/response.png +0 -0
  51. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/hooks.py +0 -0
  52. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/manual.md +0 -0
  53. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/methods.md +0 -0
  54. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/reproduction.md +0 -0
  55. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/results/airquality/curves.csv +0 -0
  56. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/results/airquality/diagnostics.csv +0 -0
  57. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/results/airquality/observations.csv +0 -0
  58. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/results/airquality/parameters.csv +0 -0
  59. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/results/airquality/results.json +0 -0
  60. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/results/posterior-checks.json +0 -0
  61. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/structured.md +0 -0
  62. {kernelmix-0.3.0 → kernelmix-0.3.1}/docs/tutorial.md +0 -0
  63. {kernelmix-0.3.0 → kernelmix-0.3.1}/mkdocs.yml +0 -0
  64. {kernelmix-0.3.0 → kernelmix-0.3.1}/setup.cfg +0 -0
  65. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_basis.py +0 -0
  66. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_clusters.py +0 -0
  67. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_generalized.py +0 -0
  68. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_input.py +0 -0
  69. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_kernel.py +0 -0
  70. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_likelihoods.py +0 -0
  71. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_prediction.py +0 -0
  72. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_structure.py +0 -0
  73. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_structured.py +0 -0
  74. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/_survival.py +0 -0
  75. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/diagnostics.py +0 -0
  76. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/effects.py +0 -0
  77. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/model.py +0 -0
  78. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/plots.py +0 -0
  79. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/priors.py +0 -0
  80. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/result.py +0 -0
  81. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix/structured_result.py +0 -0
  82. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix.egg-info/SOURCES.txt +0 -0
  83. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix.egg-info/dependency_links.txt +0 -0
  84. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix.egg-info/requires.txt +0 -0
  85. {kernelmix-0.3.0 → kernelmix-0.3.1}/src/kernelmix.egg-info/top_level.txt +0 -0
  86. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/fixtures/r_cluster_reference.json +0 -0
  87. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/fixtures/r_reference.json +0 -0
  88. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_analysis_data.py +0 -0
  89. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_basis_structure.py +0 -0
  90. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_clusters.py +0 -0
  91. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_effects_plots.py +0 -0
  92. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_extension_posteriors.py +0 -0
  93. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_generalized.py +0 -0
  94. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_generalized_targets.py +0 -0
  95. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_inputs_priors.py +0 -0
  96. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_posterior_comparison.py +0 -0
  97. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_posterior_target.py +0 -0
  98. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_prediction_extension.py +0 -0
  99. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_publication_guard.py +0 -0
  100. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_reference.py +0 -0
  101. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_results_diagnostics.py +0 -0
  102. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_sampler.py +0 -0
  103. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_structured_models.py +0 -0
  104. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_structured_targets.py +0 -0
  105. {kernelmix-0.3.0 → kernelmix-0.3.1}/tests/test_survival_extended.py +0 -0
  106. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/analyze_airquality.py +0 -0
  107. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/check_extension_posteriors.py +0 -0
  108. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/check_public.py +0 -0
  109. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/check_r_continuation.R +0 -0
  110. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/check_r_posteriors.py +0 -0
  111. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/export_airquality.R +0 -0
  112. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/export_cluster_reference.R +0 -0
  113. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/export_fitted_reference.R +0 -0
  114. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/export_reference.R +0 -0
  115. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/plot_airquality.py +0 -0
  116. {kernelmix-0.3.0 → kernelmix-0.3.1}/tools/plot_airquality_details.py +0 -0
@@ -1,15 +1,18 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.3.1
4
+
5
+ - Use complete documentation and image URLs in the PyPI description.
6
+ - Add the PyPI installation command to the guides and reference manual.
7
+
8
+ ## 0.3.0
4
9
 
5
10
  - Add reproducible fitted-posterior comparisons with R and independent extension checks.
6
11
  - Add searchable documentation with grouped API pages and common questions.
7
12
 
8
13
  - Clarify model support, priors and notation; connect the guides and reference manual around analysis tasks.
9
14
  - Add a reproducible public-data ozone example, saved results and residual plots.
10
- - Document original-study gaps and platform verification limits.
11
-
12
- ## 0.3.0
15
+ - Document original-study gaps and platform verification.
13
16
 
14
17
  - Matérn 3/2 and rational-quadratic kernels; predictive-process and random-Fourier GP bases.
15
18
  - Random slopes with full covariance; Gaussian AR1, exponential and fixed residual correlations.
@@ -2,7 +2,7 @@ cff-version: 1.2.0
2
2
  message: "Please cite KernelMix and the method papers listed in the README."
3
3
  title: "KernelMix: Bayesian kernel machine regression for exposure mixtures"
4
4
  type: software
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  authors:
7
7
  - family-names: Chapagain
8
8
  given-names: Nilson
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kernelmix
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Bayesian kernel machine regression for exposure mixtures
5
5
  Author: Nilson Chapagain
6
6
  License-Expression: GPL-2.0-only
@@ -36,27 +36,27 @@ To handle different outcome types, the package combines this exposure function w
36
36
 
37
37
  | Task | Start here |
38
38
  | --- | --- |
39
- | Choose an outcome model and priors | [Models and assumptions](docs/methods.md) |
40
- | Fit, inspect, predict and compare exposures | [Analysis tutorial](docs/tutorial.md) |
41
- | Model clusters, kernels or detailed survival records | [Structured models](docs/structured.md) |
42
- | Find arguments and result fields | [API reference](docs/api.md) |
43
- | Check numerical evidence and limitations | [Evidence](docs/reproduction.md) |
39
+ | Choose an outcome model and priors | [Models and assumptions](https://nilson01.github.io/kernelmix/methods/) |
40
+ | Fit, inspect, predict and compare exposures | [Analysis tutorial](https://nilson01.github.io/kernelmix/tutorial/) |
41
+ | Model clusters, kernels or detailed survival records | [Structured models](https://nilson01.github.io/kernelmix/structured/) |
42
+ | Find arguments and result fields | [API reference](https://nilson01.github.io/kernelmix/reference/) |
43
+ | Check numerical evidence and limitations | [Evidence](https://nilson01.github.io/kernelmix/reproduction/) |
44
44
 
45
45
  ## Install
46
46
 
47
- Install directly from GitHub:
48
-
49
47
  ```sh
50
- python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@main"
48
+ python -m pip install kernelmix
51
49
  ```
52
50
 
53
- Or, from a downloaded source folder:
51
+ For plots, use `python -m pip install "kernelmix[plots]"`.
52
+
53
+ Or install the released source directly from GitHub:
54
54
 
55
55
  ```sh
56
- python -m pip install ".[plots]"
56
+ python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@v0.3.1"
57
57
  ```
58
58
 
59
- Python 3.10 or later is required. Omit `[plots]` if plots are not needed.
59
+ Python 3.10 or later is required.
60
60
 
61
61
  ## Example
62
62
 
@@ -85,7 +85,7 @@ sigma2 0.2159 0.08346 0.1142 0.4188
85
85
 
86
86
  These short chains illustrate the output and trigger mixing warnings. For an analysis, use longer runs and inspect agreement between chains and effective sample sizes, which account for dependence between draws.
87
87
 
88
- ![Exposure response curve with pointwise 95% credible intervals](docs/figures/response.png)
88
+ ![Exposure response curve with pointwise 95% credible intervals](https://nilson01.github.io/kernelmix/figures/response.png)
89
89
 
90
90
  The curve varies the first exposure with the second at its median, relative to the all-median exposure profile. It describes a fitted association; a causal interpretation requires additional assumptions.
91
91
 
@@ -93,10 +93,10 @@ The curve varies the first exposure with the second at its median, relative to t
93
93
 
94
94
  Browse the [searchable documentation](https://nilson01.github.io/kernelmix/).
95
95
 
96
- The [common questions](docs/faq.md) explain prediction scales, missing values, selection and diagnostics. The [observed ozone example](docs/airquality.md) includes source data and saved results. Download the [reference manual](docs/manual.pdf) for offline reading. Contributors can find [development checks](docs/development.md) separately.
96
+ The [common questions](https://nilson01.github.io/kernelmix/faq/) explain prediction scales, missing values, selection and diagnostics. The [observed ozone example](https://nilson01.github.io/kernelmix/airquality/) includes source data and saved results. Download the [reference manual](https://nilson01.github.io/kernelmix/manual.pdf) for offline reading. Contributors can find [development checks](https://nilson01.github.io/kernelmix/development/) separately.
97
97
 
98
98
  ## References and license
99
99
 
100
- [Bobb et al. (2015)](https://doi.org/10.1093/biostatistics/kxu058) introduced BKMR for exposure-mixture analysis. [Bobb et al. (2018)](https://doi.org/10.1186/s12940-018-0413-y) described the R software and its binary-outcome extension. KernelMix implements these methods separately in Python and adds count and survival likelihoods, defined in the [model guide](docs/methods.md).
100
+ [Bobb et al. (2015)](https://doi.org/10.1093/biostatistics/kxu058) introduced BKMR for exposure-mixture analysis. [Bobb et al. (2018)](https://doi.org/10.1186/s12940-018-0413-y) described the R software and its binary-outcome extension. KernelMix implements these methods separately in Python and adds count and survival likelihoods, defined in the [model guide](https://nilson01.github.io/kernelmix/methods/).
101
101
 
102
- We compare selected Gaussian and probit posterior summaries and conditional calculations, including random intercepts, with installed R [`bkmr`](https://cran.r-project.org/package=bkmr) 0.2.2. The [evidence summary](docs/reproduction.md) records results and limits. See [NOTICE](NOTICE) for attribution and [LICENSE](LICENSE) for GPL-2.0-only terms.
102
+ We compare selected Gaussian and probit posterior summaries and conditional calculations, including random intercepts, with installed R [`bkmr`](https://cran.r-project.org/package=bkmr) 0.2.2. The [evidence summary](https://nilson01.github.io/kernelmix/reproduction/) records results and limits. See [NOTICE](https://github.com/nilson01/kernelmix/blob/main/NOTICE) for attribution and [LICENSE](https://github.com/nilson01/kernelmix/blob/main/LICENSE) for GPL-2.0-only terms.
@@ -7,27 +7,27 @@ To handle different outcome types, the package combines this exposure function w
7
7
 
8
8
  | Task | Start here |
9
9
  | --- | --- |
10
- | Choose an outcome model and priors | [Models and assumptions](docs/methods.md) |
11
- | Fit, inspect, predict and compare exposures | [Analysis tutorial](docs/tutorial.md) |
12
- | Model clusters, kernels or detailed survival records | [Structured models](docs/structured.md) |
13
- | Find arguments and result fields | [API reference](docs/api.md) |
14
- | Check numerical evidence and limitations | [Evidence](docs/reproduction.md) |
10
+ | Choose an outcome model and priors | [Models and assumptions](https://nilson01.github.io/kernelmix/methods/) |
11
+ | Fit, inspect, predict and compare exposures | [Analysis tutorial](https://nilson01.github.io/kernelmix/tutorial/) |
12
+ | Model clusters, kernels or detailed survival records | [Structured models](https://nilson01.github.io/kernelmix/structured/) |
13
+ | Find arguments and result fields | [API reference](https://nilson01.github.io/kernelmix/reference/) |
14
+ | Check numerical evidence and limitations | [Evidence](https://nilson01.github.io/kernelmix/reproduction/) |
15
15
 
16
16
  ## Install
17
17
 
18
- Install directly from GitHub:
19
-
20
18
  ```sh
21
- python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@main"
19
+ python -m pip install kernelmix
22
20
  ```
23
21
 
24
- Or, from a downloaded source folder:
22
+ For plots, use `python -m pip install "kernelmix[plots]"`.
23
+
24
+ Or install the released source directly from GitHub:
25
25
 
26
26
  ```sh
27
- python -m pip install ".[plots]"
27
+ python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@v0.3.1"
28
28
  ```
29
29
 
30
- Python 3.10 or later is required. Omit `[plots]` if plots are not needed.
30
+ Python 3.10 or later is required.
31
31
 
32
32
  ## Example
33
33
 
@@ -56,7 +56,7 @@ sigma2 0.2159 0.08346 0.1142 0.4188
56
56
 
57
57
  These short chains illustrate the output and trigger mixing warnings. For an analysis, use longer runs and inspect agreement between chains and effective sample sizes, which account for dependence between draws.
58
58
 
59
- ![Exposure response curve with pointwise 95% credible intervals](docs/figures/response.png)
59
+ ![Exposure response curve with pointwise 95% credible intervals](https://nilson01.github.io/kernelmix/figures/response.png)
60
60
 
61
61
  The curve varies the first exposure with the second at its median, relative to the all-median exposure profile. It describes a fitted association; a causal interpretation requires additional assumptions.
62
62
 
@@ -64,10 +64,10 @@ The curve varies the first exposure with the second at its median, relative to t
64
64
 
65
65
  Browse the [searchable documentation](https://nilson01.github.io/kernelmix/).
66
66
 
67
- The [common questions](docs/faq.md) explain prediction scales, missing values, selection and diagnostics. The [observed ozone example](docs/airquality.md) includes source data and saved results. Download the [reference manual](docs/manual.pdf) for offline reading. Contributors can find [development checks](docs/development.md) separately.
67
+ The [common questions](https://nilson01.github.io/kernelmix/faq/) explain prediction scales, missing values, selection and diagnostics. The [observed ozone example](https://nilson01.github.io/kernelmix/airquality/) includes source data and saved results. Download the [reference manual](https://nilson01.github.io/kernelmix/manual.pdf) for offline reading. Contributors can find [development checks](https://nilson01.github.io/kernelmix/development/) separately.
68
68
 
69
69
  ## References and license
70
70
 
71
- [Bobb et al. (2015)](https://doi.org/10.1093/biostatistics/kxu058) introduced BKMR for exposure-mixture analysis. [Bobb et al. (2018)](https://doi.org/10.1186/s12940-018-0413-y) described the R software and its binary-outcome extension. KernelMix implements these methods separately in Python and adds count and survival likelihoods, defined in the [model guide](docs/methods.md).
71
+ [Bobb et al. (2015)](https://doi.org/10.1093/biostatistics/kxu058) introduced BKMR for exposure-mixture analysis. [Bobb et al. (2018)](https://doi.org/10.1186/s12940-018-0413-y) described the R software and its binary-outcome extension. KernelMix implements these methods separately in Python and adds count and survival likelihoods, defined in the [model guide](https://nilson01.github.io/kernelmix/methods/).
72
72
 
73
- We compare selected Gaussian and probit posterior summaries and conditional calculations, including random intercepts, with installed R [`bkmr`](https://cran.r-project.org/package=bkmr) 0.2.2. The [evidence summary](docs/reproduction.md) records results and limits. See [NOTICE](NOTICE) for attribution and [LICENSE](LICENSE) for GPL-2.0-only terms.
73
+ We compare selected Gaussian and probit posterior summaries and conditional calculations, including random intercepts, with installed R [`bkmr`](https://cran.r-project.org/package=bkmr) 0.2.2. The [evidence summary](https://nilson01.github.io/kernelmix/reproduction/) records results and limits. See [NOTICE](https://github.com/nilson01/kernelmix/blob/main/NOTICE) for attribution and [LICENSE](https://github.com/nilson01/kernelmix/blob/main/LICENSE) for GPL-2.0-only terms.
@@ -0,0 +1,23 @@
1
+ # Installation
2
+
3
+ Python 3.10 or later is required. KernelMix uses NumPy and SciPy; R is not required for fitting or prediction.
4
+
5
+ ## From PyPI
6
+
7
+ ```sh
8
+ python -m pip install kernelmix
9
+ ```
10
+
11
+ For plots, install Matplotlib through the plotting extra:
12
+
13
+ ```sh
14
+ python -m pip install "kernelmix[plots]"
15
+ ```
16
+
17
+ ## From GitHub
18
+
19
+ ```sh
20
+ python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@v0.3.1"
21
+ ```
22
+
23
+ Start with the [analysis tutorial](tutorial.md) for fitting, diagnostics, prediction and exposure summaries. The [ozone example](airquality.md) includes observed data and saved results.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "kernelmix"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "Bayesian kernel machine regression for exposure mixtures"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -25,7 +25,7 @@ from .priors import Prior
25
25
  from .result import BKMRFit, Prediction, SurvivalPrediction
26
26
  from .structured_result import CompetingRiskPrediction, RandomCoefficientPrediction, StructuredFit
27
27
 
28
- __version__ = "0.3.0"
28
+ __version__ = "0.3.1"
29
29
  __all__ = [
30
30
  "StructuredFit", "RandomCoefficientPrediction", "CompetingRiskPrediction", "kernel_matrix",
31
31
  "fit", "Prior", "BKMRFit", "Prediction", "gaussian_kernel", "diagnose",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kernelmix
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Bayesian kernel machine regression for exposure mixtures
5
5
  Author: Nilson Chapagain
6
6
  License-Expression: GPL-2.0-only
@@ -36,27 +36,27 @@ To handle different outcome types, the package combines this exposure function w
36
36
 
37
37
  | Task | Start here |
38
38
  | --- | --- |
39
- | Choose an outcome model and priors | [Models and assumptions](docs/methods.md) |
40
- | Fit, inspect, predict and compare exposures | [Analysis tutorial](docs/tutorial.md) |
41
- | Model clusters, kernels or detailed survival records | [Structured models](docs/structured.md) |
42
- | Find arguments and result fields | [API reference](docs/api.md) |
43
- | Check numerical evidence and limitations | [Evidence](docs/reproduction.md) |
39
+ | Choose an outcome model and priors | [Models and assumptions](https://nilson01.github.io/kernelmix/methods/) |
40
+ | Fit, inspect, predict and compare exposures | [Analysis tutorial](https://nilson01.github.io/kernelmix/tutorial/) |
41
+ | Model clusters, kernels or detailed survival records | [Structured models](https://nilson01.github.io/kernelmix/structured/) |
42
+ | Find arguments and result fields | [API reference](https://nilson01.github.io/kernelmix/reference/) |
43
+ | Check numerical evidence and limitations | [Evidence](https://nilson01.github.io/kernelmix/reproduction/) |
44
44
 
45
45
  ## Install
46
46
 
47
- Install directly from GitHub:
48
-
49
47
  ```sh
50
- python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@main"
48
+ python -m pip install kernelmix
51
49
  ```
52
50
 
53
- Or, from a downloaded source folder:
51
+ For plots, use `python -m pip install "kernelmix[plots]"`.
52
+
53
+ Or install the released source directly from GitHub:
54
54
 
55
55
  ```sh
56
- python -m pip install ".[plots]"
56
+ python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@v0.3.1"
57
57
  ```
58
58
 
59
- Python 3.10 or later is required. Omit `[plots]` if plots are not needed.
59
+ Python 3.10 or later is required.
60
60
 
61
61
  ## Example
62
62
 
@@ -85,7 +85,7 @@ sigma2 0.2159 0.08346 0.1142 0.4188
85
85
 
86
86
  These short chains illustrate the output and trigger mixing warnings. For an analysis, use longer runs and inspect agreement between chains and effective sample sizes, which account for dependence between draws.
87
87
 
88
- ![Exposure response curve with pointwise 95% credible intervals](docs/figures/response.png)
88
+ ![Exposure response curve with pointwise 95% credible intervals](https://nilson01.github.io/kernelmix/figures/response.png)
89
89
 
90
90
  The curve varies the first exposure with the second at its median, relative to the all-median exposure profile. It describes a fitted association; a causal interpretation requires additional assumptions.
91
91
 
@@ -93,10 +93,10 @@ The curve varies the first exposure with the second at its median, relative to t
93
93
 
94
94
  Browse the [searchable documentation](https://nilson01.github.io/kernelmix/).
95
95
 
96
- The [common questions](docs/faq.md) explain prediction scales, missing values, selection and diagnostics. The [observed ozone example](docs/airquality.md) includes source data and saved results. Download the [reference manual](docs/manual.pdf) for offline reading. Contributors can find [development checks](docs/development.md) separately.
96
+ The [common questions](https://nilson01.github.io/kernelmix/faq/) explain prediction scales, missing values, selection and diagnostics. The [observed ozone example](https://nilson01.github.io/kernelmix/airquality/) includes source data and saved results. Download the [reference manual](https://nilson01.github.io/kernelmix/manual.pdf) for offline reading. Contributors can find [development checks](https://nilson01.github.io/kernelmix/development/) separately.
97
97
 
98
98
  ## References and license
99
99
 
100
- [Bobb et al. (2015)](https://doi.org/10.1093/biostatistics/kxu058) introduced BKMR for exposure-mixture analysis. [Bobb et al. (2018)](https://doi.org/10.1186/s12940-018-0413-y) described the R software and its binary-outcome extension. KernelMix implements these methods separately in Python and adds count and survival likelihoods, defined in the [model guide](docs/methods.md).
100
+ [Bobb et al. (2015)](https://doi.org/10.1093/biostatistics/kxu058) introduced BKMR for exposure-mixture analysis. [Bobb et al. (2018)](https://doi.org/10.1186/s12940-018-0413-y) described the R software and its binary-outcome extension. KernelMix implements these methods separately in Python and adds count and survival likelihoods, defined in the [model guide](https://nilson01.github.io/kernelmix/methods/).
101
101
 
102
- We compare selected Gaussian and probit posterior summaries and conditional calculations, including random intercepts, with installed R [`bkmr`](https://cran.r-project.org/package=bkmr) 0.2.2. The [evidence summary](docs/reproduction.md) records results and limits. See [NOTICE](NOTICE) for attribution and [LICENSE](LICENSE) for GPL-2.0-only terms.
102
+ We compare selected Gaussian and probit posterior summaries and conditional calculations, including random intercepts, with installed R [`bkmr`](https://cran.r-project.org/package=bkmr) 0.2.2. The [evidence summary](https://nilson01.github.io/kernelmix/reproduction/) records results and limits. See [NOTICE](https://github.com/nilson01/kernelmix/blob/main/NOTICE) for attribution and [LICENSE](https://github.com/nilson01/kernelmix/blob/main/LICENSE) for GPL-2.0-only terms.
@@ -42,6 +42,9 @@ def main():
42
42
  url = (f'https://github.com/nilson01/kernelmix/blob/{options.revision}/'
43
43
  + image.relative_to(root).as_posix())
44
44
  text = text.replace(url, str(vector))
45
+ text = text.replace(
46
+ "https://nilson01.github.io/kernelmix/figures/" + image.name, str(vector)
47
+ )
45
48
  # Keep short tables and code blocks with their immediate headings.
46
49
  def short_table(match):
47
50
  heading, table = match.group(1) or '', match.group(2)
@@ -1,19 +0,0 @@
1
- # Installation
2
-
3
- Python 3.10 or later is required. KernelMix uses NumPy and SciPy; R is not required for fitting or prediction. Matplotlib is an optional plotting dependency.
4
-
5
- Install directly from GitHub:
6
-
7
- ```sh
8
- python -m pip install "kernelmix[plots] @ git+https://github.com/nilson01/kernelmix.git@main"
9
- ```
10
-
11
- Or, from a downloaded source folder:
12
-
13
- ```sh
14
- python -m pip install ".[plots]"
15
- ```
16
-
17
- Omit `[plots]` if plots are not needed.
18
-
19
- Start with the [analysis tutorial](tutorial.md). It explains the required arrays, fitting, diagnostics, prediction and exposure summaries. The [ozone example](airquality.md) includes observed data and saved results.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes