Analyzing the results
Downsizing the number of predictors
# Create a new GLM model to bypass the error about number of rows changing
model1 <- glm(PHENO ~ PRS + Age + Sex + height + weight + physical_activity + meat + smoking + alcohol + father_cancer + mother_cancer + sibling_cancer + polyps + crohns_disease + ulcerative_colitis, data = model_1$model, family = binomial)
# Run stepwise regression
sml1 <- step(model1)
# View summary of model
summary(sml1)
# Print formula
print(formula(sml1))
Finding the amount of extra information added by PRS
Incremental R-squared
R2
PGS000074
PGS000785
Net reclassification index (NRI)
deltaAUC
AUC
PGS000074
PGS000785
Last updated