-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
84 lines (62 loc) · 4.79 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = FALSE,
comment = ">",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# dlmtree <a href="https://anderwilson.github.io/bdlim/"><img src="man/figures/logo.png" align="right" height="138" /></a>
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/dlmtree)](https://CRAN.R-project.org/package=dlmtree)
[![R-CMD-check](https://github.com/danielmork/dlmtree/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/danielmork/dlmtree/actions/workflows/R-CMD-check.yaml)
[![Downloads](https://cranlogs.r-pkg.org/badges/dlmtree)](https://cran.rstudio.com/package=dlmtree)
<!-- badges: end -->
`dlmtree` is an R package that provides constrained distributed lag models (DLMs) using a regression tree approach within the Bayesian additive regression trees (BART) framework, referred to as treed DLMs. The package includes various extensions of treed DLMs, allowing for the incorporation of different scenarios like linear, non-linear associations, mixture exposures, and heterogeneous exposure effects. The package is built user-friendly with a single function \texttt{dlmtree} with three arguments to specify treed DLMs. Functions for summarizing the model fit and visualization are also provided.
### Treed DLM Overview
| Model | Type | Family | Mixture | Heterogeneity |
|:-----------------------------------------------------------|:-------------:|:----------:|:---------:|:--------------:|
| Treed distributed lag model (TDLM)$^2$ | Linear | Gaussian | X | X |
| | | Binary | X | X |
| | | Count | X | X |
| Treed distributed lag mixture model (TDLMM)$^2$ | Linear | Gaussian | O | X |
| | | Binary | O | X |
| | | Count | O | X |
| Treed distributed non-linear lag model (TDLNM)$^{1,4}$ | Non-linear | Gaussian | X | X |
| | | Binary | X | X |
| | Monotone | Gaussian | X | X |
| | | Binary | X | X |
| Heterogeneous distributed lag model (HDLM)$^3$ | Linear | Gaussian | X | O |
| Heterogeneous distributed lag mixture model (HDLMM) | Linear | Gaussian | O | O |
### Model Selection Guide
![](man/figures/decisiontree.png)
### Installation
Installing package from [GitHub](https://github.com/):
``` r
# install.packages("devtools")
devtools::install_github("danielmork/dlmtree")
library(dlmtree)
```
Installing package from CRAN:
``` r
install.packages("dlmtree")
library(dlmtree)
```
### References
The majority of methods implemented in this package are described in the following papers as well as some on going work.
1. Mork, D. and Wilson, A. (2022). “Treed distributed lag nonlinear models.”
_Biostatistics_, *23*(3), 754–771 ([DOI: 10.1093/biostatistics/kxaa051](https://doi.org/10.1093/biostatistics/kxaa051),
[arXiv preprint](https://arxiv.org/abs/2010.06147))
2. Mork, D. and Wilson, A. (2023). “Estimating perinatal critical windows of susceptibility to environmental mixtures via structured Bayesian regression tree pairs.”
_Biometrics_, *79*(1), 449-461 ([DOI: 10.1111/biom.13568](https://doi.org/10.1111/biom.13568),
[arXiv preprint](https://arxiv.org/abs/2102.09071))
3. Mork, D., Kioumourtzoglou, M. A., Weisskopf, M., Coull, B. A., and Wilson, A. (2024). “Heterogeneous Distributed Lag Models to Estimate Personalized Effects of Maternal Exposures to Air Pollution.”
_Journal of the American Statistical Association_, *119*(545), 14-26 ([DOI: 10.1080/01621459.2023.2258595](https://doi.org/10.1080/01621459.2023.2258595),
[arXiv preprint](https://arxiv.org/abs/2109.13763))
4. Mork, D. and Wilson, A. (In press). “Incorporating prior information into distributed lag nonlinear models with zero-inflated monotone regression trees.”
_Bayesian Analysis_. ([DOI: 10.1214/23-BA1412](https://doi.org/10.1214/23-BA1412),
[arXiv preprint](https://arxiv.org/abs/2301.12937))