This Shiny application provides predictive models for "Any Outcome" and "Major Outcome" using logistic regression. The models are designed to assess potential predictive variables and provide performance metrics such as overall model fit, discrimination, and calibration.
To run the application, follow these steps:
Ensure you have R and RStudio installed. Install the required packages by running the following command in R:
install.packages(c("shiny","tidyverse","colorspace","shinythemes","readxl", "DT","MASS","boot","caret","modelr"))
Clone the repository or download the app files to your local machine. Open the app.R
file in RStudio and click on the "Run App" button.
Alternatively, you can run the app using the command:
if (!require("pacman")) install.packages("pacman")
pacman::p_load("shiny","tidyverse","colorspace","shinythemes","readxl", "DT","MASS","boot","caret","modelr")
runGitHub(
'Assocs',
username = 'statisticsguru1',
ref = "main"
)
The app allows users to input the values for the variables used in the prediction models. The variables include:
- Age
- Gender (Female or Male)
- Path (options: DEFORMITY, DEGEN, INFECTION, TRAUMA)
- Anemia (Yes or No)
- Autoimmune (Yes or No)
- Respiratory (Yes or No)
- Cardiac (Yes or No)
- Diabetic (Yes or No)
- Invasiveness
The app provides predictions for the probability of "Any Outcome" and "Major Outcome" based on the input values. The outputs include:
- Predicted probability for "Any Outcome"
- Predicted probability for "Major Outcome"