Package: kDGLM 1.2.15

kDGLM: Bayesian Analysis of Dynamic Generalized Linear Models

Provide routines for filtering and smoothing, forecasting, sampling and Bayesian analysis of Dynamic Generalized Linear Models using the methodology described in Alves et al. (2024)<doi:10.48550/arXiv.2201.05387> and dos Santos Jr. et al. (2024)<doi:10.48550/arXiv.2403.13069>.

Authors:Silvaneo dos Santos Jr. [aut, cre], Mariane Branco Alves [aut], Hélio dos Santos Migon [aut]

kDGLM_1.2.15.tar.gz
kDGLM_1.2.15.zip(r-4.7-any)kDGLM_1.2.15.zip(r-4.6-any)kDGLM_1.2.15.zip(r-4.5-any)
kDGLM_1.2.15.tgz(r-4.6-any)kDGLM_1.2.15.tgz(r-4.5-any)
kDGLM_1.2.15.tar.gz(r-4.7-any)kDGLM_1.2.15.tar.gz(r-4.6-any)
kDGLM_1.2.15.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
kDGLM/json (API)

# Install 'kDGLM' in R:
install.packages('kDGLM', repos = c('https://silvaneojunior.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/silvaneojunior/kdglm/issues

Pkgdown/docs site:https://silvaneojunior.github.io

Datasets:
  • chickenPox - Hospital admissions by chicken pox in Brazil
  • cornWheat - Corn and wheat prices from 1986 to 2014
  • gastroBR - Hospital admissions from gastroenteritis in Brazil
  • noticeSARI - SARI data from Belo Horizonte

On CRAN:

Conda:

6.33 score 4 stars 1 packages 15 scripts 489 downloads 40 exports 10 dependencies

Last updated from:c2b2ec81ab. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK201
source / vignettesOK204
linux-releaseOK176
macos-releaseOK144
macos-oldrelOK108
windows-develOK111
windows-releaseOK111
windows-oldrelOK116
wasm-releaseOK120

Exports:ARblock_multblock_renameblock_superposCAR_priorcolQuantileeval_dlm_log_likeeval_dlm_norm_consteval_dlm_posteval_dlm_priorffsffs_blockfit_modelforecastGammagamma_predharharmonic_blockif.naif.nanif.nullinterventionjoint_priorkdglmMultinomnoisenoise_blockNormalPoissonpolpolynomial_blockregregression_blockrowQuantilesimulatesmoothingspecifyTFTF_blockzero_sum_prior

Dependencies:extraDistrgenericsrbibutilsRcppRcppArmadilloRcppParallelRdpackRfastrlangzigg

Creation of model outcomes
Table of contents | Normal case | Normal outcome with known variance | Univariated Normal outcome with unknown variance | Correlation | Poisson case | Gamma case | Multinomial case | Some comments on the usage of an offset | Handling multiple outcomes | Special case: Conditional modelling | References

Last update: 2026-09-01
Started: 2023-12-05

Creation of model structures
Table of contents | A structure for polynomial trend models | A structure for dynamic regression models | A structure for harmonic trend models | A structure for autoregresive models | Some comments about autoregressive models in the Normal family | A structure for overdispersed models | Handling multiple structural blocks | Handling multiple linear predictors | Handling unknown components in the planning matrix $F_t$ | Special priors | References

Last update: 2026-09-01
Started: 2023-12-05

Fitting and analysing models
Table of contents | Filtering and smoothing | Extracting components | Forecasting | Updating a fitted model | Intervention and monitoring | Tools for sensitivity analysis | Sampling and hyper parameter estimation | References

Last update: 2026-09-01
Started: 2023-12-05

Introduction
Table of contents | Notation | Single outcome models | References

Last update: 2026-09-01
Started: 2023-12-05

Readme and manuals

Help Manual

Help pageTopics
Auxiliary function to replicate blocksblock_mult
block_renameblock_rename
Auxiliary function for block superpositionblock_superpos
CAR priorCAR_prior
Hospital admissions by chicken pox in BrazilchickenPox
coef.fitted_dlmcoef.fitted_dlm
Corn and wheat prices from 1986 to 2014cornWheat
Structural blocks for free-form seasonal trends and regressionsffs ffs_block
Fitting kDGLM modelsfit_model
Fitting one kDGLM modelsfit_model_single
Auxiliary function for forecastingforecast.fitted_dlm
Gamma outcome for kDGLM modelsGamma
Hospital admissions from gastroenteritis in BrazilgastroBR
Structural blocks for seasonal trends and regressionshar harmonic_block
An auxiliary function for model interventionintervention
Joint priorjoint_prior
Fitting kDGLM modelskdglm
Multinom outcome for kDGLM modelsMultinom
noise_blocknoise noise_block
Normal outcome for kDGLM modelsNormal
SARI data from Belo HorizontenoticeSARI
Visualizing latent states in a fitted kDGLM modelplot.dlm_coef
Visualizing a fitted kDGLM modelplot.fitted_dlm
Poisson outcome for kDGLM modelsPoisson
Structural blocks for polynomial trends and regressionspol polynomial_block
Structural blocks for regressionsreg regression_block
Draw samples from the distribution of the latent statessimulate.fitted_dlm
Auxiliary function for model smoothingsmoothing
Specify method for dlm blocksspecify.dlm_block
Summary for a fitted kDGLM modelsummary.fitted_dlm
Structural blocks for auto regressive trends and regressionsAR TF TF_block
update.fitted_dlmupdate.fitted_dlm
Zero sum priorzero_sum_prior