dlmtree1.1.0 package

Bayesian Treed Distributed Lag Models

adj_coexposure

Adjusting for expected changes in co-exposure (TDLMM)

combine.models

Combines information from DLMs of single exposure

combine.models.tdlmm

Combines information from DLMs of mixture exposures.

cppIntersection

fast set intersection tool assumes sorted vectors A and B

diagnose

diagnose

dlmEst

Calculates the distributed lag effect with DLM matrix for linear model...

dlmtree-package

dlmtree: Bayesian Treed Distributed Lag Models

dlmtree.control.diagnose

Diagnostic control settings for dlmtree model fitting

dlmtree.control.family

Family control settings for dlmtree model fitting

dlmtree.control.het

Control settings for dlmtree model fitting, when used for heterogeneou...

dlmtree.control.hyper

Hyperparameter control settings for dlmtree model fitting

dlmtree.control.mcmc

MCMC control settings for dlmtree model fitting

dlmtree.control.mix

Control settings for dlmtree model fitting, when used for mixture mode...

dlmtree.control.monotone

Control settings for dlmtree model fitting, when used for monotone mod...

dlmtree.control.tdlnm

Control settings for dlmtree model fitting, when used for TDLNM

dlmtree

Fit tree structured distributed lag models

dlmtreeGPFixedGaussian

dlmtree model with fixed Gaussian process approach

dlmtreeGPGaussian

dlmtree model with Gaussian process approach

dlmtreeHDLMGaussian

dlmtree model with shared HDLM approach

dlmtreeHDLMMGaussian

dlmtree model with HDLMM approach

dlmtreeTDLM_cpp

dlmtree model with nested HDLM approach

dlmtreeTDLMFixedGaussian

dlmtree model with fixed Gaussian approach

dlmtreeTDLMNestedGaussian

dlmtree model with nested Gaussian approach

dlnmEst

Calculates the distributed lag effect with DLM matrix for non-linear m...

dlnmPLEst

Calculates the distributed lag effect with DLM matrix for non-linear m...

drawTree

Draws a new tree structure

estDLM

Calculates subgroup-specific lag effects for heterogeneous models

get_sbd_dlmtree

Download simulated data for dlmtree articles

mixEst

Calculates the lagged interaction effects with MIX matrix for linear m...

monotdlnm_Cpp

dlmtree model with monotone tdlnm approach

pip

Calculates posterior inclusion probabilities (PIPs) for modifiers in H...

plot.summary.monotone

Returns variety of plots for model summary of class 'monotone'

plot.summary.tdlm

Plots a distributed lag function for model summary of 'tdlm'

plot.summary.tdlmm

Plots DLMMs for model summary of class 'tdlmm'

plot.summary.tdlnm

Returns variety of plots for model summary of class 'tdlnm'

ppRange

Makes a 'pretty' output of a group of numbers

predict

predict

print

print

rcpp_pgdraw

Multiple draw polya gamma latent variable for var c[i] with size b[i]

rtmvnorm

Truncated multivariate normal sampler, mean mu, cov sigma, truncated (...

ruleIdx

Calculates the weights for each modifier rule

scaleModelMatrix

Centers and scales a matrix

shiny

shiny

sim.hdlmm

Creates simulated data for HDLM & HDLMM

sim.tdlmm

Creates simulated data for TDLM & TDLMM

sim.tdlnm

Creates simulated data for TDLNM

splitPIP

Calculates the posterior inclusion probability (PIP).

splitpoints

Determines split points for continuous modifiers

summary

summary

tdlmm_Cpp

dlmtree model with tdlmm approach

tdlnm_Cpp

dlmtree model with tdlnm approach

zeroToInfNormCDF

Integrates (0,inf) over multivariate normal

Estimation of distributed lag models (DLMs) based on a Bayesian additive regression trees framework. Includes several extensions of DLMs: treed DLMs and distributed lag mixture models (Mork and Wilson, 2023) <doi:10.1111/biom.13568>; treed distributed lag nonlinear models (Mork and Wilson, 2022) <doi:10.1093/biostatistics/kxaa051>; heterogeneous DLMs (Mork, et. al., 2024) <doi:10.1080/01621459.2023.2258595>; monotone DLMs (Mork and Wilson, 2024) <doi:10.1214/23-BA1412>. The package also includes visualization tools and a 'shiny' interface to check model convergence and to help interpret results.

  • Maintainer: Daniel Mork
  • License: GPL (>= 3)
  • Last published: 2025-04-25