title: “Cohort with transplant”
output: html_document
date: “2025-01-07”

2025 logistic regression cohort with transplant

1 year

## Type 'citation("pROC")' for a citation.
## 
## Attaching package: 'pROC'
## The following objects are masked from 'package:stats':
## 
##     cov, smooth, var
## Setting levels: control = alive, case = died
## Setting direction: controls < cases
## Confusion Matrix and Statistics
## 
##           Reference
## Prediction alive  died
##      alive 58849  9432
##      died   1817  3539
##                                           
##                Accuracy : 0.8472          
##                  95% CI : (0.8446, 0.8498)
##     No Information Rate : 0.8239          
##     P-Value [Acc > NIR] : < 2.2e-16       
##                                           
##                   Kappa : 0.3158          
##                                           
##  Mcnemar's Test P-Value : < 2.2e-16       
##                                           
##             Sensitivity : 0.27284         
##             Specificity : 0.97005         
##          Pos Pred Value : 0.66075         
##          Neg Pred Value : 0.86186         
##              Prevalence : 0.17615         
##          Detection Rate : 0.04806         
##    Detection Prevalence : 0.07274         
##       Balanced Accuracy : 0.62144         
##                                           
##        'Positive' Class : died            
## 
## Area under the curve: 0.8053

3 year

## Setting levels: control = alive, case = died
## Setting direction: controls < cases
## Confusion Matrix and Statistics
## 
##           Reference
## Prediction alive  died
##      alive 32533 13033
##      died   9055 19016
##                                           
##                Accuracy : 0.7             
##                  95% CI : (0.6967, 0.7034)
##     No Information Rate : 0.5648          
##     P-Value [Acc > NIR] : < 2.2e-16       
##                                           
##                   Kappa : 0.381           
##                                           
##  Mcnemar's Test P-Value : < 2.2e-16       
##                                           
##             Sensitivity : 0.5933          
##             Specificity : 0.7823          
##          Pos Pred Value : 0.6774          
##          Neg Pred Value : 0.7140          
##              Prevalence : 0.4352          
##          Detection Rate : 0.2582          
##    Detection Prevalence : 0.3812          
##       Balanced Accuracy : 0.6878          
##                                           
##        'Positive' Class : died            
## 
## Area under the curve: 0.759