{"id":26772944,"url":"https://github.com/paulgovan/risknetwork","last_synced_at":"2025-04-15T21:25:04.290Z","repository":{"id":28602049,"uuid":"32120405","full_name":"paulgovan/RiskNetwork","owner":"paulgovan","description":"Risk Network Modeling and Analysis","archived":false,"fork":false,"pushed_at":"2023-06-22T17:27:24.000Z","size":67751,"stargazers_count":32,"open_issues_count":1,"forks_count":23,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T01:34:00.519Z","etag":null,"topics":["bayesian-networks","learning-algorithm","network-measures","r","risk-networks"],"latest_commit_sha":null,"homepage":"http://paulgovan.github.io/RiskNetwork","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulgovan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-13T02:19:53.000Z","updated_at":"2024-12-14T00:24:38.000Z","dependencies_parsed_at":"2025-03-29T01:30:38.815Z","dependency_job_id":"e02e2d8a-1192-4b52-9f99-83dc21a9e00f","html_url":"https://github.com/paulgovan/RiskNetwork","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FRiskNetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FRiskNetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FRiskNetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FRiskNetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulgovan","download_url":"https://codeload.github.com/paulgovan/RiskNetwork/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155612,"owners_count":21221637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayesian-networks","learning-algorithm","network-measures","r","risk-networks"],"created_at":"2025-03-29T01:30:24.780Z","updated_at":"2025-04-15T21:25:04.262Z","avatar_url":"https://github.com/paulgovan.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Lifecycle:\ndeprecated](https://img.shields.io/badge/lifecycle-deprecated-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#deprecated)\n\n# Features\n* Create interactive risk network models\n* Learn the structure of your network with structural learning algorithms\n* Learn the paramaters of your network with effective paramater learning methods\n* Measure the importance of connections in your network with node and network measures\n* Generate data from your network and export to your favorite app\n\n# Overview\nRiskNetwork is a [Shiny](http://shiny.rstudio.com) web application for risk network modeling and analysis, powered by the excellent [bnlearn](http://www.bnlearn.com) package. While this app was developed specifically for risk networks, it can also be used for general [Bayesian Network](https://github.com/paulgovan/BayesianNetwork) modeling and analysis.\n\n# Getting Started\nTo install RiskNetwork in [R](https://www.r-project.org):\n\n```\ndevtools::install_github('paulgovan/RiskNetwork')\n```\n\nTo launch the app:\n\n```\nRiskNetwork::RiskNetwork()\n```\n\nOr to access the app through a browser, visit [paulgovan.shinyapps.io/RiskNetwork](https://paulgovan.shinyapps.io/RiskNetwork/). \n\n# Example\n## Home\nLaunching the app brings up the Home tab. The Home tab is basically a landing page that gives a brief introduction to the app and includes two value boxes, one each for the number of *nodes* and *arcs* in the network. \n\nRiskNetwork comes with a number of simulated and \"real world\" data sets. This example will use the \"Sample Discrete Network\", which is the selected network by default.\n\n![Home](https://github.com/paulgovan/RiskNetwork/blob/master/inst/images/Dashboard.PNG?raw=true)\n\n## Structure\nClick Structure in the sidepanel to begin learning the network from the data.\n\nThe Bayesian network is automatically displayed in the Risk Network box.\n\nIn order to learn the structure of a network for a given data set, upload the data set in csv format using The Network Input box. Again, this example uses the \"Sample Discrete Network\", which should already be loaded. \n\nSelect a learning algorithm from the Structural Learning box. A number of different stuctural learning algorithms are currently supported, including:  \n* Constraint-based algorithms\n* Score-based algorithms\n* Hybrid-structure algorithms\n* Local discovery algorithms\n\nTo view the network score, select a score function from the The Network Score box. \n\n![Structure](https://github.com/paulgovan/RiskNetwork/blob/master/inst/images/Structure.PNG?raw=true)\n\n\"Sample Discrete Network\" contains six discrete variables, stored as factors with either 2 or 3 levels. The structure of this simple Bayesian network can be learned using the grow-shrink algorithm, which is the selected algorithm by default.\n\nTry different combinations of structural learning algorithms and score functions in order to see the effect (if any) on the resulting network.\n\n## Parameters\nSelect the grow-shrink algorithm once again and then click Parameters in the sidepanel in order to learn the parameters of the network. The selected paramaters are automically displayed in the Network Paramaters box.\n\nSelect a learning algorithm from the Parameter Learning box. This app supports both maximum-likelihood and Bayesian estimation of the parameters. Note that Bayesian parameter learning is currently only implemented for discrete data sets. Then select the type of chart to display in the Paramter Infographic box and, for the discrete case, choose your preferred node. For example, the selected node *A* is a discrete node with three levels: *a*, *b*, and *c*.\n\n![Parameters](https://github.com/paulgovan/RiskNetwork/blob/master/inst/images/Parameters.PNG?raw=true)\n\n## Measures\nClick Measures in the sidepanel to bring up a number of tools for classical network analysis. The Measures tab has a number of node and network measures. The node measures include:\n* Markov blanket\n* Neighborhood\n* Parents\n* Children\n* In degree\n* Out degree\n* Incident arcs\n* Incoming arcs\n* Outgoing arcs\n\nSelect a node measure in the Node Control box and the result will be displayed in the Node Measure box.\n\nThe Network Control box contains different options for hierarchical clustering of the network. Select the type of dendogram to display (row, column, both, or none) and the resulting dendogram(s) will be displayed along with the adjacency matrix in the Network Measure box.\n\n![Measures](https://github.com/paulgovan/RiskNetwork/blob/master/inst/images/Measures.PNG?raw=true)\n\n## Simulation\n\nFinally, click Simulation in the sidepanel in order to simulate data from the network for future use. Simply enter the sample size *N* in the Network Simulation box and click *Download* in order to download a random sample of data from the Bayesian network. \n\n![Simulation](https://github.com/paulgovan/RiskNetwork/blob/master/inst/images/Simulation.PNG?raw=true)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulgovan%2Frisknetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulgovan%2Frisknetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulgovan%2Frisknetwork/lists"}