IRT for CRC
  • Developing an Integrated Risk Prediction Tool for Colorectal Cancer
  • Cohort used for the study
  • Clinical risk factors
    • Creating the clinical dataframe
    • Creating the clinical risk model
    • Analyzing the results
  • Polygenic risk scores
    • PRSice
    • Preparing to use PRSice
    • Obtaining polygenic risk scores
    • Analyzing the results
    • Plink2
  • Integrated risk score
    • Obtaining integrated risk scores
    • Analyzing the results
  • Working with real patient data
    • Genetic data from Tempus Labs
      • Preparing the data and obtaining polygenic risk scores
      • Interpreting the scores
    • Clinical data from Gastroenterology Atlanta
      • Obtaining integrated scores and understanding the results
Powered by GitBook
On this page
  • R-squared (R2)
  • Area under the curve (AUC)
  • Evaluation metrics
  1. Clinical risk factors

Analyzing the results

R-squared (R2)

R-squared can only be obtained for a linear model, so we perform linear regression in R as follows:

# Create a model using linear regression
clinical_model <- lm(PHENO ~ Age + Sex + height + weight + physical_activity + meat + smoking + alcohol + father_cancer + mother_cancer + sibling_cancer + polyps + crohns_disease + ulcerative_colitis, data = merged_df, family = binomial)

# Compute R2
clinical_rsq <- summary(clinical_model)$r.squared

# Print R2
print(clinical_rsq)

Area under the curve (AUC)

AUC is computed in R as follows:

# Get predicted probabilities
probs_clinical <- predict(model_clinical, type = "response", newdata = merged_df)

# Compute AUC
auc_clinical <- roc(merged_df$PHENO, predict(model_clinical, type = "response"))$auc

# Print AUC
print(auc_clinical)

Evaluation metrics

R2
AUC

0.01503821

0.5708

PreviousCreating the clinical risk modelNextPolygenic risk scores

Last updated 1 year ago