This project performs simulations and evaluates model performance on both synthetic and real-world data. Follow the steps below to run the analysis.
-
Install Dependencies
Runinstall_dependencies.Rto install all the required libraries. -
Run Simulation
Executesimulation.Rto:- Estimate model coefficients (betas)
- Compute mean squared error (MSE) for both training and test datasets
- Save the results for further analysis
-
Generate Plots
Runplots.Rto visualize:- Boxplots of the mean squared error (MSE)
- Estimated covariates across models
-
Evaluate Model Performance
Runtable_TPR_NPR.Rto calculate the following performance metrics:- True Positive Rate (TPR)
- True Negative Rate (TNR)
- Positive Predictive Value (PPV)
- Negative Predictive Value (NPV)
The results will be saved as
table_TPR_NPR.RData. -
Apply to Real-World Data
Runreal-life-study.Rto apply the analysis on the real datasetClean_Dataset.csv.