kDGLM
An R package for Bayesian analysis of Dynamic Generialized Linear Models
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.7%) to scientific vocabulary
Repository
An R package for Bayesian analysis of Dynamic Generialized Linear Models
Basic Info
- Host: GitHub
- Owner: silvaneojunior
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://silvaneojunior.github.io/kDGLM/
- Size: 31.3 MB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 8
- Releases: 0
Metadata Files
README.md
kDGLM: An R package for Bayesian analysis of Generalized Dynamic Linear Models
Welcome to the kDGLM GitHub repository! kDGLM is an innovative R package tailored for Bayesian analysis of Generalized Dynamic Linear Models (GDLM), catering to both uni- and multivariate exponential families. This package is your go-to tool for sequential inference on time series data, offering a broad spectrum of functionalities including fitting, smoothing, monitoring, and feed-forward interventions.
Developed based on the methodology proposed in Alves et al.(2024), kDGLM integrates seamlessly with established techniques in the literature, particularly those applied in Gaussian Dynamic Models. It supports various features such as discount strategies, autoregressive components, transfer functions, and more, leveraging the Kalman filter and smoothing properties for exceptional computational efficiency. With kDGLM, you can expect almost instantaneous fitting times that scale linearly with your time series length, making it an invaluable tool for analyzing extended time series datasets.
Currently, kDGLM supports a variety of distributions, including:
- Univariate Normal (with unknown mean and observational variance);
- Bivariate Normal (with unknown means, observational variances, and correlation);
- Poisson;
- Gamma (with known shape and unknown mean);
- Multinomial (with known number of trials and unknown event probabilities).
Furthermore, kDGLM allows for the joint modeling of multiple time series, provided each series adheres to one of the supported distributions. Our ongoing development efforts are focused on continuously expanding the range of supported distributions to enhance the package's versatility.
Whether you are analyzing time series data for research, business intelligence, or any other purpose, kDGLM offers a powerful, efficient, and comprehensive solution for your needs. Explore our documentation to get started and join the community of users benefiting from the advanced capabilities of kDGLM!
Installation
Dependencies
Before installing kDGLM, ensure you have the following dependencies installed in your R environment:
extraDistr>= 1.9.1cubature>= 2.1.0Rfast>= 2.0.8generics>= 0.1.3
Additionally, for an enhanced plotting experience, we recommend installing the ggplot2 and plotly packages, which augment the built-in plot methods provided by kDGLM.
Installing kDGLM
As of now, kDGLM is available directly from its GitHub repository. While we are in the process of submitting kDGLM to CRAN, you can install the latest version of the package by executing the following command in your R console:
r
remotes::install_github('silvaneojunior/kDGLM')
This command uses the remotes package to install kDGLM. If you do not have remotes installed, you can install it first by running install.packages("remotes").
Getting Started
After installation, load kDGLM into your R session:
r
library(kDGLM)
To test if the package is working properly, execute the following code exemple:
```r # Poisson case data <- c(AirPassengers)
level <- polynomialblock(rate = 1, order = 2, D = 0.95) season <- harmonicblock(rate = 1, order = 2, period = 12, D = 0.975)
outcome <- Poisson(lambda = "rate", data = data)
fitted.data <- fit(level, season, AirPassengers = outcome ) summary(fitted.data)
plot(fitted.data, plot.pkg = "base") ```
Refer to the vignettes for detailed usage instructions. Also see the documentation of the fit method for basic examples for each type of outcome the kDGLM package offers.
Contributing
We welcome contributions! If you're interested in improving kDGLM, please consider submitting bug reports, feature requests, or pull requests.
Acknowledgements
- Raíra Marotta, who gently provided the base code for the initial versions.
Contact
For support or to provide feedback, please contact Silvaneo dos Santos Jr. or open an issue on the GitHub repository.
Owner
- Login: silvaneojunior
- Kind: user
- Repositories: 3
- Profile: https://github.com/silvaneojunior
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "dos Santos"
given-names: "Silvaneo Vieira"
name-suffix: "Junior"
- family-names: "Alves"
given-names: "Mariane Branco"
- family-names: "Migon"
given-names: "Hélio dos Santos"
title: "Bayesian analysis of Dynamic Generialized Linear Models"
url: "https://github.com/silvaneojunior/kDGLM"
preferred-citation:
type: article
authors:
- family-names: "dos Santos"
given-names: "Silvaneo Vieira"
name-suffix: "Junior"
- family-names: "Alves"
given-names: "Mariane Branco"
- family-names: "Migon"
given-names: "Hélio dos Santos"
doi: "10.48550/arXiv.2403.13069"
title: "kDGLM: An R package for Bayesian analysis of Generalized Dynamic Linear Models"
year: 2024
GitHub Events
Total
- Watch event: 1
- Push event: 20
Last Year
- Watch event: 1
- Push event: 20
Packages
- Total packages: 1
-
Total downloads:
- cran 637 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: kDGLM
Bayesian Analysis of Dynamic Generalized Linear Models
- Homepage: https://silvaneojunior.github.io/kDGLM/
- Documentation: http://cran.r-project.org/web/packages/kDGLM/kDGLM.pdf
- License: GPL (≥ 3)
-
Latest release: 1.2.7
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- R >= 2.10 depends
- Rdpack * imports
- Rfast >= 2.0.8 imports
- cubature >= 2.1.0 imports
- extraDistr >= 1.9.1 imports
- generics * suggests
- ggplot2 * suggests
- knitr * suggests
- plotly * suggests
- rmarkdown * suggests