Bayesian Network Analysis of Intracranial Aneurysm. Data preparation and analysis of risk factors for intracranial aneurysms.
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 with
renv` following this guide.
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:
-
raw_data_harmonization: Querying the raw data from a private data base resulting in the
adb.raw
data set. -
data_preprocessing: From raw data to the preprocessed
adb
data set. -
data_preparation_for_experiments: Implementation of prior knowledge (blacklist, banned-matrix), specification of variable distributions and variable selection for each analysis scenario.
-
correlation_analysis: Descriptive statistics.
-
regression_analysis: Multivariable logistic regression models.
-
Discrete BN structure learning: Structure learning for discrete BNs.
-
DBN validation: Classification error estimation and inference.
-
ABN analysis: Structure learning was performed on a high-performance computing cluster followed by local postprocessing Details from additive BNs.
-
For the publication additional figures and tables were produced.
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")