{"id":23288066,"url":"https://github.com/nhs-transformation-unit/markov_example","last_synced_at":"2025-04-06T16:25:47.463Z","repository":{"id":268444204,"uuid":"897817996","full_name":"NHS-Transformation-Unit/markov_example","owner":"NHS-Transformation-Unit","description":"Repository for a simple Markov Model that can be amended within a Shiny App","archived":false,"fork":false,"pushed_at":"2024-12-17T11:22:23.000Z","size":330,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T22:24:28.420Z","etag":null,"topics":["markov-model","r","shiny"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NHS-Transformation-Unit.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":"2024-12-03T09:44:04.000Z","updated_at":"2024-12-17T11:22:27.000Z","dependencies_parsed_at":"2024-12-16T20:30:48.517Z","dependency_job_id":"7feac51a-2af4-40f2-b575-046590fa730f","html_url":"https://github.com/NHS-Transformation-Unit/markov_example","commit_stats":null,"previous_names":["nhs-transformation-unit/markov_example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHS-Transformation-Unit%2Fmarkov_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHS-Transformation-Unit%2Fmarkov_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHS-Transformation-Unit%2Fmarkov_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHS-Transformation-Unit%2Fmarkov_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NHS-Transformation-Unit","download_url":"https://codeload.github.com/NHS-Transformation-Unit/markov_example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247511161,"owners_count":20950614,"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":["markov-model","r","shiny"],"created_at":"2024-12-20T03:13:41.328Z","updated_at":"2025-04-06T16:25:47.445Z","avatar_url":"https://github.com/NHS-Transformation-Unit.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"www/images/TU_logo_large.png\" alt=\"TU logo\" width=\"200\" align=\"right\"/\u003e\n\n# Markov Model - Shiny Example\nThis repository contains the code for creating a shiny app for running simple\nMarkov Models.\n\n## Table of Contents\n\n1. [Overview](#overview)\n2. [Using the Repository](#using)\n3. [Repository Structure](#structure)\n4. [Contributors](#contributors)\n\n## Overview\nThis repository contains the code to create a **Shiny App** to demonstrate how\nMarkov Models are constructed and how to run simple models. Markov models are \nused widely in health economics and epidemiology to understand how patients can \nmove between different health states. Comparing different models with different \ntransition probabilities can enable comparisons of employing different healthcare\nsolutions.\n\nThe Markov Model App is available for demonstration [here](https://nhs-tu-andy-wilson.shinyapps.io/markov_example/).\n\n## Using the Repository\nTo run the model locally the repository can be cloned:\n```bash\n\ngit clone https://github.com/NHS-Transformation-Unit/markov_example.git\ncd markov_example\n\n```\nDependencies should be installed using `renv.lock` but please review the \nrequired packages in the `app.R` script.\n\nThe app can then be run using the following command in R:\n```r\nlibrary(shiny)\nrunApp(\"app.R\")\n```\n\n## Structure\n\nThe folder structure of the repository is shown below:\n\n```plaintext\n\n├───R\n  └───markov_model.R\n├───renv\n  ├───.gitignore\n  ├───activate.R\n  └───settings.json\n├───tests\n  ├───testthat.R\n├───www\n  ├───images\n  └───themes\n├───README.md\n├───renv.lock\n├───.gitignore\n├───markov_example.Rproj\n├───.Rprofile\n├───app.R\n├───LICENSE\n\n```\n### `R`\nThis folder contains the `markov_model.R` script. This has the necessary \nfunctions for running the markov model.\n\n### `renv`\nContains necessary files for `renv` for reproducibility and collaboration.\n\n### `tests`\nContains unit tests for checking the Markov Model returns correct sized matrix \nand that the values returned from multiple cycles are correct.\n\n### `www`\nContains the images and theme files used within the app. The `images` include \ndiagrams of markov models and screenshots of the app. The `themes` include TU\n`.css` themes and ggplot themes for the app.\n\n### `app.R`\nThis is the shiny app that is deployed [here](https://nhs-tu-andy-wilson.shinyapps.io/markov_example/).\n\n## Contributors\nThis repository has been created and developed by:\n- [Andy Wilson](https://github.com/ASW-Analyst)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhs-transformation-unit%2Fmarkov_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhs-transformation-unit%2Fmarkov_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhs-transformation-unit%2Fmarkov_example/lists"}