Skip to content

matteodelucchi/bnaiaR

Repository files navigation

bnaiaR

Bayesian Network Analysis of Intracranial Aneurysm. Data preparation and analysis of risk factors for intracranial aneurysms.

Installation

You can install the released version of bnaiaR from Github with:

devtools::install_github("matteodelucchi/bnaiaR")

In case of installation issues caused by the package igraph, check this post: github.com/igraph

To ensure smooth compatibility and to remain your local setup untouched, I recommend to use this package within a virtual environment from renv. A local installation of mcmcabn was used,which can be installed withrenv` following this guide.

Description

Data

There are different data sets attached to the package. For example, the preprocessed raw data can be accessed with this command.

data(adb)

The data sets description can be accessed in the respective help page.

help(adb)

To follow the data preparation and more details consider the vignettes in this order:

  1. raw_data_harmonization: Querying the raw data from a private data base resulting in the adb.raw data set.

  2. data_preprocessing: From raw data to the preprocessed adb data set.

  3. data_preparation_for_experiments: Implementation of prior knowledge (blacklist, banned-matrix), specification of variable distributions and variable selection for each analysis scenario.

  4. correlation_analysis: Descriptive statistics.

  5. regression_analysis: Multivariable logistic regression models.

  6. Discrete BN structure learning: Structure learning for discrete BNs.

  7. DBN validation: Classification error estimation and inference.

  8. ABN analysis: Structure learning was performed on a high-performance computing cluster followed by local postprocessing Details from additive BNs.

  9. For the publication additional figures and tables were produced.

Citations

If you make use of this R package or one of its data sets in your research we would appreciate a citation of the following article:

Matteo Delucchi, Georg R. Spinner, Marco Scutari, Philippe Bijlenga, Sandrine Morel, Christoph M. Friedrich, Reinhard Furrer and Sven Hirsch. 2022. Bayesian network analysis reveals the interplay of intracranial aneurysm rupture risk factors. Computers in Biology and Medicine. 10.1016/j.compbiomed.2022.105740.

you can get it as BibTeX entry with

citation("bnaiaR")

About

Bayesian Network Analysis of Intracranial Aneurysm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages