Whether PRS X Is Associated With Trait Y

Use associate$regression() for direct outcome association tests, supporting one or many outcomes, predictors, and adjusted covariates .

  • Discrete/binary outcome: logistic regression (glm)
  • Continuous outcome: linear regression (lm)
assoc <- associate$regression(
  data,
  outcome = demented,
  predictors = everything(),
  covariates = c(age, sex, PCA)
)

What comes back

A PolyGeniusAssociations object using the regression summary schema. See the full page for the exact lm and glm row fields and interpretation.

Plotting

visualize$associations$forest(assoc)
visualize$associations$heatmap(assoc)

Open the regression guide