Analyzing the results
Evaluation metrics
# Compute AUC for only PRS
auc_prs <- roc(df$PHENO, df$PRS)$auc
# Create GLM for PRS, age, and sex
prs_model <- glm(PHENO ~ PRS + Age + Sex, data = df, family = binomial)
# Get predicted probabilities from the model
predicted_probs <- predict(prs_model, type = "response")
# Compute combined AUC
auc_combined <- roc(df$PHENO, predicted_probs)$auc
# Print combined AUC
print(auc_combined)Evaluation metrics
PGS000074
PGS000785
Distribution plots
PGS000074
PGS000785
Odds ratio plots
PGS000074
PGS000785
Last updated



