Package: dlim 0.2.1
dlim: Distributed Lag Interaction Model
Collection of functions for fitting and interpreting distributed lag interaction models (DLIM). A DLIM regresses a scalar outcome on repeated measures of exposure and allows for modification by a continuous variable. Includes a dlim() function for fitting, predict() function for inference, and plotting functions for visualization. Details on methodology are described in Demateis et al. (2024) <doi:10.1002/env.2843>.
Authors:
dlim_0.2.1.tar.gz
dlim_0.2.1.zip(r-4.7)dlim_0.2.1.zip(r-4.6)dlim_0.2.1.zip(r-4.5)
dlim_0.2.1.tgz(r-4.6-any)dlim_0.2.1.tgz(r-4.5-any)
dlim_0.2.1.tar.gz(r-4.6-any)dlim_0.2.1.tar.gz(r-4.5-any)
dlim_0.2.1.tgz(r-4.5-emscripten)
dlim.pdf |dlim.html✨
dlim/json (API)
NEWS
| # Install 'dlim' in R: |
| install.packages('dlim', repos = c('https://ddemateis.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ddemateis/dlim/issues
Pkgdown/docs site:https://ddemateis.github.io
Last updated from:f04491334d. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 150 | ||
| source / vignettes | OK | 179 | ||
| linux-release-x86_64 | OK | 144 | ||
| macos-release-arm64 | OK | 152 | ||
| macos-oldrel-arm64 | OK | 182 | ||
| windows-devel | OK | 101 | ||
| windows-release | OK | 109 | ||
| windows-oldrel | OK | 112 | ||
| wasm-release | OK | 113 |
Exports:cross_basisdlimmodel_comparisonplot_cumulativeplot_DLFsim_datasim_dlfsim_dlim
Dependencies:clicpp11dlnmfarverggplot2gluegridExtragtableisobandlabelinglatticelifecyclemagrittrMatrixmgcvnlmeplyrR6RColorBrewerRcppreshape2rlangS7scalesstringistringrtsModelvctrsviridisviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Distributed Lag Interaction Model (DLIM) | dlim-package |
| Build crossbasis | cross_basis |
| Fit DLIM | dlim |
| Example data set | ex_data |
| Exposure data set for simulation | exposure |
| Model Comparison | model_comparison |
| Plot Distributed Lag Function | plot_cumulative |
| Plot Cumulative Effects | plot_DLF |
| DLIM Predictions | predict.dlim |
| Simulated DLIM Predictions | predict.sim_dlim |
| Print DLIM Information | print.dlim |
| Simulate Data | sim_data |
| Simulate Distributed Lag Functions | sim_dlf |
| Fit DLIM for simulation | sim_dlim |
| Summarizing DLIM | summary.dlim |
